JoeKuan added the comment:
I don't think it is to do with the underlying C mktime. Because it works fine
with 00:59:58 and 01:00:00, 1, Jan 1970. It is to do with some specific value
-1 in the internal code of time.mktime
Here is the C code.
int main(int argc, char
New submission from JoeKuan :
>>> a = (1970, 1, 1, 0, 59, 58, 0, 0, 0)
>>> time.mktime(a)
-2.0
>>> a = (1970, 1, 1, 0, 59, 59, 0, 0, 0)
>>> time.mktime(a)
Traceback (most recent call last):
File "", line 1, in
OverflowError: mktime argument out o