Friday, April 16, 2010
Converting epoch time
Convert from epoch time to standard date/time
perl -e 'print scalar(localtime(1226424300)), "\n"'
Wed Nov 12 01:25:00 2008
Convert from standard date/time to epoch time
perl -e 'use Time::Local; print timelocal(0,25,1,11,11,2008), "\n";'
1228929900
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment