]> granicus.if.org Git - python/commit
Issue #22117: Add the new _PyTime_ROUND_FLOOR rounding method for the datetime
authorVictor Stinner <victor.stinner@gmail.com>
Sat, 28 Mar 2015 04:02:39 +0000 (05:02 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Sat, 28 Mar 2015 04:02:39 +0000 (05:02 +0100)
commit02937aab13ecfe1f67b8de48c37412b0328217ec
treee6ae07581ca459a4b561f479d1610b2c5341fff2
parentb3b454407058cd57d8a401a5aeb018d4ccb87616
Issue #22117: Add the new _PyTime_ROUND_FLOOR rounding method for the datetime
module. time.clock_settime() now uses this rounding method instead of
_PyTime_ROUND_DOWN to handle correctly dates before 1970.
Include/pytime.h
Lib/test/test_time.py
Modules/_testcapimodule.c
Modules/timemodule.c
Python/pytime.c