[Python-checkins] r71037 - python/trunk/Doc/library/datetime.rst

r.david.murray python-checkins at python.org
Thu Apr 2 06:34:05 CEST 2009


Author: r.david.murray
Date: Thu Apr 2 06:34:04 2009
New Revision: 71037
Log:
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.
Modified:
 python/trunk/Doc/library/datetime.rst
Modified: python/trunk/Doc/library/datetime.rst
==============================================================================
--- python/trunk/Doc/library/datetime.rst	(original)
+++ python/trunk/Doc/library/datetime.rst	Thu Apr 2 06:34:04 2009
@@ -1629,8 +1629,12 @@
 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


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /