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

localtime() oddities

Thread Next
From:
Roman Makurin
Date:
August 3, 2009 04:27
Subject:
localtime() oddities
Message ID:
20090803112718.GA13820@protva-net
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 :)

Thanks.

-- 
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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About