Skip to content

Commit d4cfe40

Browse files
Move text around
1 parent 9d3d701 commit d4cfe40

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

Doc/library/datetime.rst

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2643,8 +2643,12 @@ requires, and these work on all supported platforms.
26432643
| ``%%`` | A literal ``'%'`` character. | % | Yes | |
26442644
+-----------+--------------------------------+------------------------+--------------+-------+
26452645

2646-
Several additional directives not required by the C89 standard are included for
2647-
convenience. These parameters all correspond to ISO 8601 date values.
2646+
The ISO 8601 year and ISO 8601 week directives are not interchangeable
2647+
with the year and week number directives above. Calling :meth:`~.datetime.strptime` with
2648+
incomplete or ambiguous ISO 8601 directives will raise a :exc:`ValueError`.
2649+
2650+
Several additional directives not required by the C11 standard are included for
2651+
convenience.
26482652

26492653
+-----------+--------------------------------+------------------------+-------+
26502654
| Directive | Meaning | Example | Notes |
@@ -2659,11 +2663,6 @@ convenience. These parameters all correspond to ISO 8601 date values.
26592663
| | naive). | -03:07:12.345216 | |
26602664
+-----------+--------------------------------+------------------------+-------+
26612665

2662-
These may not be available on all platforms when used with the :meth:`~.datetime.strftime`
2663-
method. The ISO 8601 year and ISO 8601 week directives are not interchangeable
2664-
with the year and week number directives above. Calling :meth:`~.datetime.strptime` with
2665-
incomplete or ambiguous ISO 8601 directives will raise a :exc:`ValueError`.
2666-
26672666
The full set of format codes supported varies across platforms, because Python
26682667
calls the platform C library's :c:func:`strftime` function, and platform
26692668
variations are common. To see the full set of format codes supported on your

0 commit comments

Comments
 (0)