good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^5: How can I convert epoch seconds to date formatby davorg (Chancellor) |
on May 11, 2006 at 14:34 UTC ( [id://548726]=note: print w/replies, xml ) | Need Help?? |
I'm not entirely sure what you're trying to achieve here, but your code seems to work as expected.
The output I get is:
Are you sure that the date is correct as you are pulling it out of the database? Also, if you're converting between a local timezone and GMT then the easiest way is by using timelocal and gmtime (or timegm and localtime if you're going the other way).
-- <http://dave.org.uk> "The first rule of Perl club is you do not talk about
Perl club."
In Section
Seekers of Perl Wisdom
|
|