Your skill will accomplish what the force of many cannot |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
It's called epoch time, the number of seconds since Jan 1st, 1970.
To convert to epoch time, you can use core module Time::Local's timegm or timelocal. To make changes, you should use Date::Calc. To render into a human-readable format, POSIX's strftime (in conjunction with localtime or gmtime) should do the trick. Time::ParseDate might be of use if you want to avoid the dropdowns. Update: Rearranged order of text. Added last paragraph. In reply to Re: how to calculate time that looks like 1138597506
by ikegami
|
|