On Tue, 8 Feb 2005, Steve Hay wrote:

Indeed. In fact, looking at the MS CRT source code (localtim.c) we see
the following note:

*       (3) It is assumed that time_t is a 32-bit long integer representing
*           the number of seconds since 00:00:00, 01-01-70 (UTC) (i.e., the
*           Posix/Unix Epoch. Only non-negative values are supported.

and sure enough, Perl's localtime() returns nothing when fed any
negative values.

The attached patch (against Time-Local-1.10) fixes the example above,
and also silences a bucketload of similar noise that was previously
coming from Time::Local when running the LWP test suite on Win32.

- Steve

This is fixed in the CVS version of Time::Local. See http://sourceforge.net/cvs/?group_id=17187 for details.


I was hoping to get some volunteer testers on VMS and other "exotic" platforms before a release, but no one responded, so I'll probably release 1.11 soon.


-dave

/*===================================================
VegGuide.Org                        www.BookIRead.com
Your guide to all that's veg.       My book blog
===================================================*/

Reply via email to