Skip to content

Commit c4c4e20

Browse files
committed
gh-158252: Document additional optimized strptime formats
1 parent 7106044 commit c4c4e20

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎Doc/whatsnew/3.16.rst‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,9 @@ datetime and time
989989
* :meth:`datetime.datetime.strptime`, :meth:`datetime.date.strptime`,
990990
:meth:`datetime.time.strptime`, and :func:`time.strptime` are faster
991991
for common numeric formats such as ``%Y-%m-%d`` and
992-
``%Y-%m-%d %H:%M:%S``.
992+
``%Y-%m-%d %H:%M:%S``. The optimization also covers ASCII month and
993+
weekday names, 12-hour clocks, UTC offsets, numeric format aliases,
994+
and ordinal and week dates.
993995
(Contributed by Paul Ganssle in :gh:`158252`, based on work by
994996
Stan Ulbrych.)
995997

0 commit comments

Comments
 (0)