summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorR. David Murray <rdmurray@bitdance.com>2009-04-02 04:34:04 (GMT)
committerR. David Murray <rdmurray@bitdance.com>2009-04-02 04:34:04 (GMT)
commitd56bab47f1c8432f4d7d3b92d0b8f8320f369fb7 (patch)
tree6bb2d8a2440aa86132103c313535318542fe8a66 /Doc
parent5053fbbb38b7b8bc8207e2d27c32c7b82ce3172f (diff)
downloadcpython-d56bab47f1c8432f4d7d3b92d0b8f8320f369fb7.zip
cpython-d56bab47f1c8432f4d7d3b92d0b8f8320f369fb7.tar.gz
cpython-d56bab47f1c8432f4d7d3b92d0b8f8320f369fb7.tar.bz2
Clarify that datetime strftime does not produce leap seconds and datetime
strptime does not accept it in the strftime behavior section of the datetime docs. Closes issue 2568.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/datetime.rst8
1 files changed, 6 insertions, 2 deletions
diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst
index 0996276..5539c5a 100644
--- a/Doc/library/datetime.rst
+++ b/Doc/library/datetime.rst
@@ -1629,8 +1629,12 @@ Notes:
the output hour field if the ``%I`` directive is used to parse the hour.
(3)
- The range really is ``0`` to ``61``; this accounts for leap seconds and the
- (very rare) double leap seconds.
+ The range really is ``0`` to ``61``; according to the Posix standard this
+ accounts for leap seconds and the (very rare) double leap seconds.
+ The :mod:`time` module may produce and does accept leap seconds since
+ it is based on the Posix standard, but the :mod:`datetime` module
+ does not accept leap seconds in :func:`strptime` input nor will it
+ produce them in :func:`strftime` output.
(4)
When used with the :func:`strptime` function, ``%U`` and ``%W`` are only used in