Skip to content

Commit 7301962

Browse files
committed
update docs to reflect powerful %t strptime functionality
1 parent 16195db commit 7301962

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

Doc/library/datetime.rst

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2584,8 +2584,11 @@ requires, and these work on all supported platforms.
25842584
| ``%S`` | Second as a zero-padded | 00, 01, ..., 59 | \(4), |
25852585
| | decimal number. | | \(9) |
25862586
+-----------+--------------------------------+------------------------+-------+
2587-
| ``%t`` | The tab character | ``\t`` | |
2588-
| | (``'\t'``). | | |
2587+
| ``%t`` | The tab character, ``'\t'``, | ``\t`` | \(11) |
2588+
| | for ``strftime``, else | | |
2589+
| | for ``strptime``, any | | |
2590+
| | blank-space character(s), | | |
2591+
| | i.e., ``'\s+'``. | | |
25892592
+-----------+--------------------------------+------------------------+-------+
25902593
| ``%T`` | ISO 8601 time format, | 10:01:59 | |
25912594
| | equivalent to ``%H:%M:%S``. | | |
@@ -2881,6 +2884,12 @@ Notes:
28812884
:exc:`DeprecationWarning`. In 3.15 or later we may change this into
28822885
an error or change the default year to a leap year. See :gh:`70647`.
28832886

2887+
(11)
2888+
See `The Open Group Base Specifications Issue 8 IEEE Std 1003.1-2024
2889+
documentation for strptime
2890+
<https://pubs.opengroup.org/onlinepubs/9799919799/functions/strptime.html>`_
2891+
for details on the :meth: `~.datetime.strptime` invocation.
2892+
28842893
.. rubric:: Footnotes
28852894

28862895
.. [#] If, that is, we ignore the effects of Relativity

0 commit comments

Comments
 (0)