P is for Practical | |
PerlMonks |
Re^3: localtime functionby Anonymous Monk |
on Jan 27, 2015 at 10:33 UTC ( [id://1114620]=note: print w/replies, xml ) | Need Help?? |
Please use <code> tags to preserve formatting. localtime accepts a time value in seconds. I am guessing that your time values are in milliseconds, so you need to divide them by 1000 to get seconds. If that loss of precision is not acceptable, you may want to switch to a module to handle your time processing needs, such as DateTime.
In Section
Seekers of Perl Wisdom
|
|