Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
laziness, impatience, and hubris
 
PerlMonks  

Re: How long 'tween now and then?

by reptile (Monk)
on Sep 13, 2000 at 03:49 UTC ( #32213=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # get the epoch seconds for 8:00am the following day
    # NOTE if it's after midnight this doesn't work but
    ...
    my $then = timelocal(0, 0, 8, $mday + 1, $mon, $year);
    my $difference = $then - $now;
    sleep($difference);
    
  2. or download this
    sleep(1) until ((localtime)[2] == 8);
    # it's now 8:00am.. do your thing.
    
  3. or download this
    local $_ = "0A72656B636148206C72655020726568746F6E41207473754A";
    while(s/..$//) { print chr(hex($&)) }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://32213]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2014-04-20 07:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls