RE: FW: timelocal() discrepancy vs DateTime->epoch

2017-03-16 Thread Lu Feng
Hi Bill, You are right that the problem I noticed with timelocal() around 11/6/1910 is only present on Windows. On my Linux host, timelocal() remains consistent with DateTime module around 11/6/1910. But your prediction for Apr 2 in 1906 does not pan out on Windows. G:\>perl David.pl 1906 04 01

Re: FW: timelocal() discrepancy vs DateTime->epoch

2017-03-16 Thread Bill Ricker
> I'm pretty sure timelocal() is wrong here, though I'm not sure why. There > was no DST transition in that zone in 1910. In fact, there wasn't really a > time zone until 1918. The pre-1918 zone file in the Olson database is just > using local solar time, but it's not very meaningful. If you

Re: FW: timelocal() discrepancy vs DateTime->epoch

2017-03-16 Thread Dave Rolsky
On Tue, 14 Mar 2017, Lu Feng wrote: I noticed that the UNIX time from timelocal() started to differ from that you get from using DateTime module, for dates earlier than 11/6/1910.   For the America/New_York local timezone, timelocal() thinks there was a DST switch on 11/6/1910, while DateTime