Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: Perl date conversion

by Fletch (Chancellor)
on Mar 23, 2011 at 18:22 UTC ( #895070=note: print w/ replies, xml ) Need Help??

in reply to Perl date conversion

Use strftime from POSIX (granted it only prints the day-of-week as only a single digit so it's not 100% equivalent if (e.g.) you need fixed columns)

perl -MPOSIX=strftime -lne 'print strftime("%Y %m %d %w %H\t1",localti +me($_))'

The cake is a lie.
The cake is a lie.
The cake is a lie.

Comment on Re: Perl date conversion
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (1)
As of 2015-11-27 02:06 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (712 votes), past polls