summaryrefslogtreecommitdiffstats
path: root/Doc/library/time.rst
diff options
context:
space:
mode:
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>2011-01-10 22:56:14 (GMT)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>2011-01-10 22:56:14 (GMT)
commit9971e001ef3aa41aa86528a36e038b1659c753c9 (patch)
treed2f31911ed7ef5544153920130608260f63eb67c /Doc/library/time.rst
parent9a1383e380712667dc05963abd315ac3d33c0be4 (diff)
downloadcpython-9971e001ef3aa41aa86528a36e038b1659c753c9.zip
cpython-9971e001ef3aa41aa86528a36e038b1659c753c9.tar.gz
cpython-9971e001ef3aa41aa86528a36e038b1659c753c9.tar.bz2
Issue #2568: Removed bogus rationale for supporting tm_sec=61.
Diffstat (limited to 'Doc/library/time.rst')
-rw-r--r--Doc/library/time.rst13
1 files changed, 10 insertions, 3 deletions
diff --git a/Doc/library/time.rst b/Doc/library/time.rst
index dc6402c..28e994c 100644
--- a/Doc/library/time.rst
+++ b/Doc/library/time.rst
@@ -308,7 +308,7 @@ The module defines the following functions and data items:
| ``%y`` | Year without century as a decimal number | |
| | [00,99]. | |
+-----------+------------------------------------------------+-------+
- | ``%Y`` | Year with century as a decimal number. | |
+ | ``%Y`` | Year with century as a decimal number. | \(4) |
| | | |
+-----------+------------------------------------------------+-------+
| ``%Z`` | Time zone name (no characters if no time zone | |
@@ -324,13 +324,20 @@ The module defines the following functions and data items:
the output hour field if the ``%I`` directive is used to parse the hour.
(2)
- 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``; value ``60`` is valid in
+ timestamps representing leap seconds and value ``61`` is supported
+ for historical reasons.
(3)
When used with the :func:`strptime` function, ``%U`` and ``%W`` are only used in
calculations when the day of the week and the year are specified.
+ (4)
+ Produces different results depending on the value of
+ ``time.accept2dyear`` variable. See :ref:`Year 2000 (Y2K)
+ issues <time-y2kissues>` for details.
+
+
Here is an example, a format for dates compatible with that specified in the
:rfc:`2822` Internet email standard. [#]_ ::