Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

Ouch I've been mucking with time in seconds vileness for a few days myself. Try this out:

use Time::Local; my $now=time(); my (@t)=localtime($now); # 8 am today my $next8am=timelocal(0,0,8,$t[3],$t[4],$t[5]+1900); # if after 8am today, add one day in seconds. $next8am+=86400 if ($next8am<$now); sleep ($next8am-$now);

Honestly tho, you'll feel better in the end if you use Date::Calc =) If not $now then $later =P

$you = new YOU;
honk() if $you->love(perl)

In reply to RE: How long 'tween now and then? by extremely
in thread How long 'tween now and then? by myocom

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    erix stops reading as recommended by the blog itself
    [erix]: my attention being jealously guarded ;)
    [shmem]: erix, yes, it's a WTF. Since...
    [erix]: antisemitic && (pro-)russian. Makes sense :P
    [shmem]: erix: what's antisemitic in there? Tell me.
    [erix]: AngloZionist
    [shmem]: and it is *not* pro-russian. It describes the western world.
    [erix]: I'm not going to read it so I could be mistaken but it reeks of useful idiocy
    [shmem]: AngloZionist is not an antisemitic term.
    [shmem]: erix: be assured that we all are horribly mistaken, always. What would we write tests for, if not for that fact?

    How do I use this? | Other CB clients
    Other Users?
    Others making s'mores by the fire in the courtyard of the Monastery: (6)
    As of 2018-03-19 20:55 GMT
    Find Nodes?
      Voting Booth?
      When I think of a mole I think of:

      Results (246 votes). Check out past polls.