Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: How long 'tween now and then?

by reptile (Monk)
on Sep 13, 2000 at 03:49 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://32213]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-04-20 00:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found