Skip to content

Commit e859939

Browse files
committed
gh-158252: Document additional optimized strptime formats
1 parent 4a250d0 commit e859939

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
@@ -916,7 +916,9 @@ datetime and time
916916
* :meth:`datetime.datetime.strptime`, :meth:`datetime.date.strptime`,
917917
:meth:`datetime.time.strptime`, and :func:`time.strptime` are faster
918918
for common numeric formats such as ``%Y-%m-%d`` and
919-
``%Y-%m-%d %H:%M:%S``.
919+
``%Y-%m-%d %H:%M:%S``. The optimization also covers ASCII month and
920+
weekday names, 12-hour clocks, UTC offsets, numeric format aliases,
921+
and ordinal and week dates.
920922
(Contributed by Paul Ganssle in :gh:`158252`, based on work by
921923
StanFromIreland.)
922924

0 commit comments

Comments
 (0)