summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>2011-01-20 19:51:31 (GMT)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>2011-01-20 19:51:31 (GMT)
commit9ee94dec184631e16bcf50e4bfdd7e26e8e9ace0 (patch)
treef2b124c5e4b3076ab75ab1bf40053892986c2b8a
parentec89d35c7fb82319dd32f114e7976726f3699d0a (diff)
downloadcpython-9ee94dec184631e16bcf50e4bfdd7e26e8e9ace0.zip
cpython-9ee94dec184631e16bcf50e4bfdd7e26e8e9ace0.tar.gz
cpython-9ee94dec184631e16bcf50e4bfdd7e26e8e9ace0.tar.bz2
Corrected the entry about new year range in the time module.
-rw-r--r--Doc/whatsnew/3.2.rst18
1 files changed, 13 insertions, 5 deletions
diff --git a/Doc/whatsnew/3.2.rst b/Doc/whatsnew/3.2.rst
index eebee50..f983af6 100644
--- a/Doc/whatsnew/3.2.rst
+++ b/Doc/whatsnew/3.2.rst
@@ -935,11 +935,19 @@ datetime and time
after 1900. The new supported year range is from 1000 to 9999 inclusive.
* The rules for two-digit years in time tuples have changed. Now, the
- :func:`time.asctime` and :func:`time.strftime` functions will format any year
- when :attr:`time.accept2dyear` is false and will accept four-digit years
- otherwise. The :func:`time.mktime` and :func:`time.strftime` functions now
- accept full range supported by the operating system. Conversion of two-digit
- years to four-digit is deprecated.
+ :func:`time.asctime`, :func:`time.strftime` and :func:`time.mktime`
+ functions will accept any two- or four-digit year when
+ :attr:`time.accept2dyear` is true. Two-digit years are converted to
+ four-digits using the same heuristics as before, but a deprecation
+ warning will be issued whenever such conversion occurs.
+
+* The :func:`time.asctime`, :func:`time.mktime`, and
+ :func:`time.strftime` functions are no longer restricted to years
+ after 1900. Now, when :attr:`time.accept2dyear` is false, the
+ :func:`time.asctime` function will accept any year that fits in
+ a C int, while :func:`time.mktime` and :func:`time.strftime`
+ functions will accept full range supported by the corresponding
+ operating system functions.
(Contributed by Alexander Belopolsky and Victor Stinner.)