We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52228cf commit 6125846Copy full SHA for 6125846
Doc/library/datetime.rst
@@ -2691,8 +2691,9 @@ in the format string will be pulled from the default value.
2691
2692
.. note::
2693
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.
+ example, with ``%Y%m%d``, the string ``2026111`` may be parsed either as
+ ``2026-11-01`` or as ``2026-01-11``.
2696
+ Use separators to ensure the input is parsed as intended.
2697
2698
2699
When used to parse partial dates lacking a year, :meth:`.datetime.strptime`
0 commit comments