RE: definition of correctness

[email protected] ("Metz, Bobby")
Newsgroups perl.datetime
Message-ID <[email protected]>
Don't see this behavior on my system...

perl -MPOSIX -le 'print scalar
localtime(mktime(0,0,2+24,4,9,108,0,0,-1))'
Sun Oct  5 02:00:00 2008

perl -MPOSIX -le 'print scalar
localtime(mktime(0,0,2+25,4,9,108,0,0,-1))'
Sun Oct  5 03:00:00 2008

I ran all of your examples and the times always agree between DateTime
and POSIX on my system.  Local time in my case does not use daylight
savings though.  So I would think the question should be, for your
timezone which result is correct, POSIX or DateTime?  Then someone will
have to look closer at the daylight savings rules/calculations for your
timezone in that module.  I just didn't see any mention of which you
thought was the correct value.

B
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.