Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Is there a way to convert epoch time into mm/dd/yy hh:mm:ss

by sgifford (Prior)
on Apr 19, 2004 at 17:08 UTC ( [id://346349]=note: print w/replies, xml ) Need Help??


in reply to Is there a way to convert epoch time into mm/dd/yy hh:mm:ss

POSIX::strftime is a quick and easy way to do this sort of thing. Despite its name, it seems to work fine on my Windows copy of ActiveState Perl.

It can be used in conjunction with localtime:

perl -MPOSIX -e"print strftime('%m/%d/%y %H:%M:%S', localtime(10823928 +15));" 04/19/04 12:40:15

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (7)
As of 2024-04-24 10:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found