develooper Front page | perl.beginners | Postings from August 2009

localtime() oddities

Thread Next
Roman Makurin
August 3, 2009 04:27
localtime() oddities
Message ID:
Hi All!

I have a strange problem. Here is sample code:

perl -MPOSIX -le 'print scalar localtime(POSIX::mktime(0,30,14,03,07,109))'

When i test it on my laptop, everything goes fine, its output is:

Mon Aug  3 14:30:00 2009

But when im trying to execute it on freebsd server it gives me following:

Mon Aug  3 15:30:00 2009

i really dont understend why.

On laptop i have perl-5.10 installed, but freebsd has 5.8.

Could someone explain me whats goin on :)


If you think of MS-DOS as mono, and Windows as stereo,
 then Linux is Dolby Digital and all the music is free...

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About