Files
cpython/Lib/test
Victor Stinner 511491ade0 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
zero (ROUND_DOWN). 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.

Add more unit tests on the rounding mode in test_datetime.
2015-09-18 14:42:05 +02:00
..
2015-07-04 19:58:11 -05:00
2015-03-18 18:19:30 -07:00
2015-03-09 10:37:50 -04:00
2015-05-23 10:40:47 -05:00
2014-11-26 14:35:56 -06:00
2015-02-25 16:47:14 -05:00