]> granicus.if.org Git - python/commit
Issue #23517: fromtimestamp() and utcfromtimestamp() methods of
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 3 Sep 2015 07:06:44 +0000 (09:06 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 3 Sep 2015 07:06:44 +0000 (09:06 +0200)
commit2ec5bd6fb22ff71ffbe5987f55a31bc4177e39a6
treebc90e17fecec5aa9476146d19ecc02bb59f5e895
parent0fa5ef72b731c6884f58c0aa38f648b57004c4db
Issue #23517: fromtimestamp() and utcfromtimestamp() methods of
datetime.datetime now round microseconds to nearest with ties going away from
zero (ROUND_HALF_UP), as Python 2 and Python older than 3.3, instead of
rounding towards -Infinity (ROUND_FLOOR).
Lib/datetime.py
Lib/test/datetimetester.py
Misc/NEWS
Modules/_datetimemodule.c