Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: display stuff based on systemclock

by ikegami (Patriarch)
on Jul 09, 2009 at 16:15 UTC ( [id://778616]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -e'printf "%-3s %2d\n", "$_:", $_ - ($_ % 5) for 0..19'
    0:   0
    ...
    17: 15
    18: 15
    19: 15
    
  2. or download this
    $ perl -MPOSIX -le'@lt = localtime; $lt[0] -= $lt[0] % 5; print strfti
    +me "%Y-%m-%dT%H:%M:%S", @lt'
    2009-07-09T12:14:40
    ...
    
    $ perl -MPOSIX -le'@lt = localtime; $lt[0] -= $lt[0] % 5; print strfti
    +me "%Y-%m-%dT%H:%M:%S", @lt'
    2009-07-09T12:14:45
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (9)
As of 2024-03-28 09:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found