in reply to The opposite of localtime()
See POSIX::mktime().
> perl -mPOSIX -le "print time; @t = localtime; print qq{@t}; print P +OSIX::mktime(@t)" 1143783264 24 34 0 31 2 106 5 89 0 1143783264
-xdg
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
|
|---|