Skip to content

Commit f709b80

Browse files
committed
update docs for %n support; drop (0) in footnote
1 parent 3a26205 commit f709b80

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Doc/library/datetime.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2570,8 +2570,10 @@ requires, and these work on all supported platforms.
25702570
| ``%M`` | Minute as a zero-padded | 00, 01, ..., 59 | \(9) |
25712571
| | decimal number. | | |
25722572
+-----------+--------------------------------+------------------------+-------+
2573-
| ``%n`` | The newline character | ``\n`` | \(0) |
2574-
| | (``'\n'``). | | |
2573+
| ``%n`` | The newline character | ``\n`` | |
2574+
| | (``'\n'``). For | | |
2575+
| | :meth:`!strptime`, arbitrary | | |
2576+
| | whitespace. | | |
25752577
+-----------+--------------------------------+------------------------+-------+
25762578
| ``%p`` | Locale's equivalent of either || AM, PM (en_US); | \(1), |
25772579
| | AM or PM. || am, pm (de_DE) | \(3) |
@@ -2677,7 +2679,7 @@ differences between platforms in handling of unsupported format specifiers.
26772679
``%:z`` was added for :meth:`~.datetime.strftime`.
26782680

26792681
.. versionadded:: 3.15
2680-
``%D``, ``%F``, ``%t``, and ``%:z`` were added for
2682+
``%D``, ``%F``, ``%n``, ``%t``, and ``%:z`` were added for
26812683
:meth:`~.datetime.strptime`.
26822684

26832685
Technical Detail

0 commit comments

Comments
 (0)