mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Issue #10827: Changed the rules for 2-digit years. The time.asctime
function will now format any year when time.accept2dyear is false and will accept years >= 1000 otherwise. The year range accepted by time.mktime and time.strftime is still system dependent, but time.mktime will now accept full range supported by the OS. Conversion of 2-digit years to 4-digit is deprecated.
This commit is contained in:
parent
696efdd03f
commit
c64708ae48
4 changed files with 102 additions and 56 deletions
|
|
@ -36,6 +36,14 @@ Core and Builtins
|
|||
Library
|
||||
-------
|
||||
|
||||
- Issue #10827: Changed the rules for 2-digit years. The time.asctime
|
||||
function will now format any year when ``time.accept2dyear`` is
|
||||
false and will accept years >= 1000 otherwise. The year range
|
||||
accepted by ``time.mktime`` and ``time.strftime`` is still system
|
||||
dependent, but ``time.mktime`` will now accept full range supported
|
||||
by the OS. Conversion of 2-digit years to 4-digit is deprecated.
|
||||
|
||||
|
||||
- Issue #7858: Raise an error properly when os.utime() fails under Windows
|
||||
on an existing file.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue