Perl: the Markov chain saw | |
PerlMonks |
Re^3: Time::Piece reversibilityby hippo (Bishop) |
on Jun 17, 2017 at 23:26 UTC ( [id://1193028]=note: print w/replies, xml ) | Need Help?? |
it's still showing as 5pm rather than 10am: Yes, that's definitely the problem. It seems that localtime is changing the epoch as well as setting the offset so you're always getting back to the same displayed hour when you apply both (and gmtime is of course doing neither). Good spot.
In Section
Seekers of Perl Wisdom
|
|