Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: display stuff based on systemclock

by ikegami (Patriarch)
on Jul 09, 2009 at 16:15 UTC ( #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? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2022-11-27 09:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?