New submission from JoeKuan kuan@gmail.com:
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 stdin, line 1, in module
OverflowError: mktime argument out of range
a = (1970, 1, 1, 1, 0
JoeKuan kuan@gmail.com 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 *argv