• Victor Stinner's avatar
    Issue #23517: fromtimestamp() and utcfromtimestamp() methods of · 7667f581
    Victor Stinner yazdı
    datetime.datetime now round microseconds to nearest with ties going to nearest
    even integer (ROUND_HALF_EVEN), as round(float), instead of rounding towards
    -Infinity (ROUND_FLOOR).
    
    pytime API: replace _PyTime_ROUND_HALF_UP with _PyTime_ROUND_HALF_EVEN. Fix
    also _PyTime_Divide() for negative numbers.
    
    _PyTime_AsTimeval_impl() now reuses _PyTime_Divide() instead of reimplementing
    rounding modes.
    7667f581
_datetimemodule.c 178 KB