Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update docs and news entry
  • Loading branch information
marat committed Sep 18, 2025
commit eb5c88393ae921033ba845071267d3d48712edfd
2 changes: 1 addition & 1 deletion Doc/library/datetime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2764,7 +2764,7 @@ Notes:
(9)
When used with the :meth:`~.datetime.strftime` method, the leading zero is optional
for formats ``%d``, ``%m``, ``%H``, ``%I``, ``%M``, ``%S``, ``%j``, ``%U``,
``%W``, ``%V`` and ``%y`` (except that on Apple platforms, ``%y`` still requires a leading zero).
``%W``, ``%V`` and ``%y`` (except that on Apple platforms, ``%y`` always produces a leading zero).
Comment thread
mhsmith marked this conversation as resolved.
Outdated
Use the ``%-`` flag to produce non-zero-padded output (e.g. ``%-d``).
Comment thread
mhsmith marked this conversation as resolved.
Outdated

(10)
Comment thread
mhsmith marked this conversation as resolved.
Outdated
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Standardized non-zero-padded numeric formatting for dates and times in
:func:`datetime.datetime.strftime` and :func:`datetime.date.strftime` across
all platforms (e.g. ``"m:%-m d:%-d y:%-y"``).
Loading