summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>2011-01-10 23:31:51 (GMT)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>2011-01-10 23:31:51 (GMT)
commit5fc850b45528dc052a4dd3cd52d9572ecb187452 (patch)
treecf03f97c8ac76cd3a6577aae1e24d5268fd92d02 /Doc
parent085556ae89cc1fba985855233e6d9e3b553466fb (diff)
downloadcpython-5fc850b45528dc052a4dd3cd52d9572ecb187452.zip
cpython-5fc850b45528dc052a4dd3cd52d9572ecb187452.tar.gz
cpython-5fc850b45528dc052a4dd3cd52d9572ecb187452.tar.bz2
Improved footnote for the %Y directive slightly.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/datetime.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst
index 4ed1e01..de9ad44 100644
--- a/Doc/library/datetime.rst
+++ b/Doc/library/datetime.rst
@@ -1770,11 +1770,11 @@ Notes:
(5)
For technical reasons, :meth:`strftime` method does not support
- dates with year < 1000: ``t.strftime(format)`` will raise a
- :exc:`ValueError` even if ``format`` does not contain ``%Y``
- directive. The :meth:`strptime` method can parse years in the full
- [1, 9999] range, but years < 1000 must be zero-filled to 4-digit
- width.
+ dates before year 1000: ``t.strftime(format)`` will raise a
+ :exc:`ValueError` when ``t.year < 1000`` even if ``format`` does
+ not contain ``%Y`` directive. The :meth:`strptime` method can
+ parse years in the full [1, 9999] range, but years < 1000 must be
+ zero-filled to 4-digit width.
.. versionchanged:: 3.2
In previous versions, :meth:`strftime` method was restricted to