At 08:57 AM 7/29/2004, Ron Newman wrote:
On Jul 29, 2004, at 8:32 AM, Janet Marie Jackson wrote:

     Take a look at Time::Local, which has timelocal() and timegm()
functions:
        http://cpan.uwinnipeg.ca/module/Time::Local

On MacOS X, timelocal() fails if you give it a date before December 17, 1901. I don't know what's special about that date.


% ./timetest.pl 1901 12 16
Cannot handle date (0, 0, 0, 16, 11, 1901) at ./timetest.pl line 4

% ./timetest.pl 1901 12 17
-2147194800

This is getting very close to: #define INT_MIN (-2147483647 - 1) /* minimum (signed) int value */

It's different by about 3 days, so that's probably to keep it a "safe" distance away from the minimum value and wrapping around.

_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to