[issue23517] datetime.utcfromtimestamp rounds results incorrectly
Alexander Belopolsky
report at bugs.python.org
Sat Sep 5 00:11:28 CEST 2015
Alexander Belopolsky added the comment:
It would be nice to hear from Mark Dickinson on this. In Python 3, we took a much more systematic approach to rounding than a rather haphazard Python 2. For example, the rounding mode for timedelta(0, float_seconds) is not specified in Python 2, but it is in Python 3:
https://docs.python.org/2/library/datetime.html#datetime.timedelta
https://docs.python.org/3/library/datetime.html#datetime.timedelta
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23517>
_______________________________________
More information about the Python-bugs-list
mailing list