Skip to content

Commit 6125846

Browse files
Don't specify order
Co-authored-by: Petr Viktorin <encukou@gmail.com>
1 parent 52228cf commit 6125846

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Doc/library/datetime.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2691,8 +2691,9 @@ in the format string will be pulled from the default value.
26912691

26922692
.. note::
26932693
Format strings without separators can be ambiguous for parsing. For
2694-
example, ``%Y%m%d`` parses the string ``2026111`` as ``2026-11-01``,
2695-
not ``2026-01-11``. Use separators to ensure the input is parsed as intended.
2694+
example, with ``%Y%m%d``, the string ``2026111`` may be parsed either as
2695+
``2026-11-01`` or as ``2026-01-11``.
2696+
Use separators to ensure the input is parsed as intended.
26962697

26972698
.. note::
26982699
When used to parse partial dates lacking a year, :meth:`.datetime.strptime`

0 commit comments

Comments
 (0)