Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 about the Monastery: (8)
As of 2015-07-07 09:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (88 votes), past polls