[issue23517] datetime.utcfromtimestamp parses timestamps incorrectly
Timothy Cardenas
report at bugs.python.org
Thu Jul 2 01:31:56 CEST 2015
Timothy Cardenas added the comment:
We are seeing this behavior influencing other libraries in python 3.4.
This should never fail if timestamp and fromtimestamp are implemented correctly:
from datetime import datetime
t = datetime.utcnow().timestamp()
t2 = datetime.utcfromtimestamp(t)
assert t == t2, 'Moving from timestamp and back should always work'
----------
nosy: +trcarden
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23517>
_______________________________________
More information about the Python-bugs-list
mailing list