good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Strage result using localtime to convert epoch timeby revdiablo (Prior) |
on Jul 20, 2007 at 21:29 UTC ( [id://627889]=note: print w/replies, xml ) | Need Help?? |
I cannot duplicate your output. Is there more to the code you're not showing us? When I run it, I see the following:
Update: ah, I can indeed reproduce your output if I add use Time::localtime; to the code. Now I get:
I missed the Time::tm= bit the first time I saw your code. This module is overriding the localtime function and returning an object instead of the usual return values.
In Section
Seekers of Perl Wisdom
|
|