Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Epoch time conversion in CSV

by hokey (Initiate)
on Sep 26, 2012 at 02:36 UTC ( #995676=note: print w/ replies, xml ) Need Help??


in reply to Re: Epoch time conversion in CSV
in thread Epoch time conversion in CSV

You should consider using an ISO8601 time format, for all the reasons Marshall suggests. This is the code I usually use:

use POSIX qw/strftime/; print strftime('%Y-%m-%d %H:%M:%S',gmtime);
If you want local time use this:
print strftime('%Y-%m-%d %H:%M:%S',localtime);


Comment on Re^2: Epoch time conversion in CSV
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2014-09-19 10:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (135 votes), past polls