[issue23517] datetime.utcfromtimestamp rounds results incorrectly
STINNER Victor
report at bugs.python.org
Wed Sep 9 02:02:08 CEST 2015
STINNER Victor added the comment:
I modified Python 3.6 to use ROUND_HALF_EVEN rounding mode in datetime.timedelta, datetime.datetime.fromtimestamp(), datetime.datetime.utcfromtimestamp().
round_half_even_py34.patch: Backport this change to Python 3.4. I tried to write a minimal patch only changing datetime, not pytime.
----------
Added file: http://bugs.python.org/file40414/round_half_even_py34.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23517>
_______________________________________
More information about the Python-bugs-list
mailing list