[issue2494] Can't round-trip datetimes<->timestamps prior to 1970 on Windows
STINNER Victor
report at bugs.python.org
Tue Nov 11 03:58:05 CET 2008
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
If you doesn't care to the time zone (UTC), use:
>>> datetime.datetime(1970, 1, 1) + datetime.timedelta(seconds=-86400)
datetime.datetime(1969, 12, 31, 0, 0)
This code is portable on Windows, Linux but also works with
IronPython:
http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=7269
----------
nosy: +haypo
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2494>
_______________________________________
More information about the Python-bugs-list
mailing list