diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-09-18 12:50:18 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-09-18 12:50:18 (GMT) |
commit | 84ff4abd795d2cbe9f732bfd28bdc2316ab0f0bc (patch) | |
tree | 408ff8ece228c828d3b82e48c0ea23d4f92df3b2 /Misc | |
parent | ec26f83f2ea13d7f15c461ac49d46dfcdf49b8ec (diff) | |
parent | 511491ade0bb77febb176bc75f049797f0c71ed0 (diff) | |
download | cpython-84ff4abd795d2cbe9f732bfd28bdc2316ab0f0bc.zip cpython-84ff4abd795d2cbe9f732bfd28bdc2316ab0f0bc.tar.gz cpython-84ff4abd795d2cbe9f732bfd28bdc2316ab0f0bc.tar.bz2 |
Merge 3.4 (datetime rounding)
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -14,6 +14,14 @@ Core and Builtins Library ------- +- Issue #23517: Fix rounding in fromtimestamp() and utcfromtimestamp() methods + of datetime.datetime: microseconds are now rounded to nearest with ties + going to nearest even integer (ROUND_HALF_EVEN), instead of being rounding + towards minus infinity (ROUND_FLOOR). It's important that these methods use + the same rounding mode than datetime.timedelta to keep the property: + (datetime(1970,1,1) + timedelta(seconds=t)) == datetime.utcfromtimestamp(t). + It also the rounding mode used by round(float) for example. + - Issue #25155: Fix datetime.datetime.now() and datetime.datetime.utcnow() on Windows to support date after year 2038. It was a regression introduced in Python 3.5.0. |