[issue23517] datetime.utcfromtimestamp parses timestamps incorrectly
Alexander Belopolsky
report at bugs.python.org
Wed Feb 25 16:00:55 CET 2015
Alexander Belopolsky added the comment:
Let me dig up the history, but this does not look like correct rounding to me:
>>> datetime.utcfromtimestamp(1424817268.274)
datetime.datetime(2015, 2, 24, 22, 34, 28, 273999)
>>> decimal.Decimal(1424817268.274)
Decimal('1424817268.2739999294281005859375')
----------
nosy: +mark.dickinson
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23517>
_______________________________________
More information about the Python-bugs-list
mailing list