]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Merged revisions 71038 via svnmerge from
authorR. David Murray <rdmurray@bitdance.com>
Thu, 2 Apr 2009 05:01:10 +0000 (05:01 +0000)
committerR. David Murray <rdmurray@bitdance.com>
Thu, 2 Apr 2009 05:01:10 +0000 (05:01 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r71038 | r.david.murray | 2009-04-02 00:50:03 -0400 (Thu, 02 Apr 2009) | 9 lines

  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.
........

Doc/library/datetime.rst

index f08272658999c2ad43510d9d08399918838f2d2b..0bf3eb7f0e3ab6f43d2b75ce35ebabc528784c5d 100644 (file)
@@ -1621,8 +1621,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