Skip to content

Commit 67ec54d

Browse files
author
marat
committed
Update docs and news entry
1 parent 11e0218 commit 67ec54d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Doc/library/datetime.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2764,7 +2764,7 @@ Notes:
27642764
(9)
27652765
When used with the :meth:`~.datetime.strftime` method, the leading zero is optional
27662766
for formats ``%d``, ``%m``, ``%H``, ``%I``, ``%M``, ``%S``, ``%j``, ``%U``,
2767-
``%W``, ``%V`` and ``%y`` (except that on Apple platforms, ``%y`` still requires a leading zero).
2767+
``%W``, ``%V`` and ``%y`` (except that on Apple platforms, ``%y`` always produces leading zero).
27682768
Use the ``%-`` flag to produce non-zero-padded output (e.g. ``%-d``).
27692769

27702770
(10)

Misc/NEWS.d/next/Library/2025-09-18-03-02-39.gh-issue-137165.7tJ6DS.rst

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Standardized non-zero-padded numeric formatting for dates and times in
2+
:func:`datetime.datetime.strftime` and :func:`datetime.date.strftime` across
3+
all platforms (e.g. ``"m:%-m d:%-d y:%-y"``).

0 commit comments

Comments
 (0)