diff options
author | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2011-01-10 21:55:34 (GMT) |
---|---|---|
committer | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2011-01-10 21:55:34 (GMT) |
commit | bd96b06fd897f4f0e55f802fe60399ff12a43421 (patch) | |
tree | 111b33ede164401548899b43b90ac72bcc55127f | |
parent | aacfd4a0cf6dec35a4cda285135a34134d16fde6 (diff) | |
download | cpython-bd96b06fd897f4f0e55f802fe60399ff12a43421.zip cpython-bd96b06fd897f4f0e55f802fe60399ff12a43421.tar.gz cpython-bd96b06fd897f4f0e55f802fe60399ff12a43421.tar.bz2 |
Added entries about removal of year 1900 limit.
-rw-r--r-- | Doc/whatsnew/3.2.rst | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.2.rst b/Doc/whatsnew/3.2.rst index 08bcc5d..8bf6fba 100644 --- a/Doc/whatsnew/3.2.rst +++ b/Doc/whatsnew/3.2.rst @@ -839,6 +839,29 @@ datetime (Contributed by Alexander Belopolsky in :issue:`1289118`, :issue:`5094`, :issue:`6641`, and :issue:`2706`.) +.. XXX + + * The ``strftime()`` method of :class:`~datetime.date` and + :class:`~datetime.datetime` are no longer restricted to years >= + 1900. The new supported year range is [1000, 9999]. (Contributed + by Alexander Belopolsky and Victor Stinner in :issue:`1777412`) + +.. XXX Add a section on time module. + + * The :func:`time.asctime` and :func:`time.ctime` functions no + longer call C library asctime. (Contributed by Alexander + Belopolsky in :issue:`8013`.) + + * Changed the rules for using 2-digit years in time tuples. The + :func:`time.asctime`, :func:`time.ctime` and + :func:`time.strftime` functions will now format any year when + ``time.accept2dyear`` is false and will accept years >= 1000 + otherwise. :func:`time.mktime` and :func:`time.strftime` now + accepts full range supported by the OS. Conversion of 2-digit + years to 4-digit is deprecated. (Contributed by Alexander + Belopolsky and Victor Stinner in :issue:`10827`.) + + abc --- |