[issue33579] calendar.timegm not always an inverse of time.gmtime
Tim Peters
report at bugs.python.org
Sat May 19 14:51:16 EDT 2018
Tim Peters <tim at python.org> added the comment:
They both look wrong to me. Under 3.6.5 on Win10, `one` and `three` are the same.
Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)] on win32
time.struct_time(tm_year=2009, tm_mon=2, tm_mday=13, tm_hour=23, tm_min=31, tm_sec=39, tm_wday=4, tm_yday=44, tm_isdst=0)
And that matches what `datetime` computes:
>>> from datetime import *
>>> datetime(1970, 1, 1) + timedelta(seconds=1234567899)
datetime.datetime(2009, 2, 13, 23, 31, 39)
----------
nosy: +tim.peters
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33579>
_______________________________________
More information about the Python-bugs-list
mailing list