bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mktime() hangs for dates before 1970


From: Benjamin Lindner
Subject: Re: mktime() hangs for dates before 1970
Date: Mon, 31 Jan 2011 09:43:34 +0100

>
> OK, I'm done now.  Can you please try the latest gnulib mktime.c
> and see whether it solves the problem on your platform?

I tested it, and mktime.exe no longer hangs for dates before 1970.

$ ./mktime 1980-01-01 00:00:00
mktime returns 315529200 == 1980-01-01 00:00:00 yday 000 wday 2 isdst 0

$ ./mktime 1962-01-01 00:00:00
mktime returns -1 == 1962-01-01 00:00:00 yday 2293728 wday 2293560 isdst -1
mktime (0)
yields (1962-01-01 00:00:00 yday 2293728 wday 2293560 isdst -1) == -1,
should be -1

thanks for fixing it!
benjamin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]