summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>2011-01-07 19:59:19 (GMT)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>2011-01-07 19:59:19 (GMT)
commitc64708ae48d07ac906ae29e7ac19a6173a9926df (patch)
tree0fe64e3d7b06b9e889131d6224f791590aa83907 /Misc
parent696efdd03f40d5a135961af54946b56028b323bd (diff)
downloadcpython-c64708ae48d07ac906ae29e7ac19a6173a9926df.zip
cpython-c64708ae48d07ac906ae29e7ac19a6173a9926df.tar.gz
cpython-c64708ae48d07ac906ae29e7ac19a6173a9926df.tar.bz2
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.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS8
1 files changed, 8 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 33aac6e..01c2542 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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.