[Python-checkins] gh-99728: correct typo in `datetime` format codes documentation (GH-99750)

miss-islington webhook-mailer at python.org
Sat Dec 10 05:29:10 EST 2022


https://github.com/python/cpython/commit/606adb4b891b52c8b9a53d29d594e996f117c0b3
commit: 606adb4b891b52c8b9a53d29d594e996f117c0b3
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-12-10T02:29:04-08:00
summary:

gh-99728: correct typo in `datetime` format codes documentation (GH-99750)

(cherry picked from commit d5f8a2b6ad408368e728a389da918cead3ef7ee9)

Co-authored-by: Brad Wolfe <brad.wolfe at gmail.com>

files:
M Doc/library/datetime.rst

diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst
index 8a7d99999f5d..e700b0a1347a 100644
--- a/Doc/library/datetime.rst
+++ b/Doc/library/datetime.rst
@@ -2589,7 +2589,7 @@ Notes:
 
 (9)
    When used with the :meth:`strptime` method, the leading zero is optional
-   for  formats ``%d``, ``%m``, ``%H``, ``%I``, ``%M``, ``%S``, ``%J``, ``%U``,
+   for  formats ``%d``, ``%m``, ``%H``, ``%I``, ``%M``, ``%S``, ``%j``, ``%U``,
    ``%W``, and ``%V``. Format ``%y`` does require a leading zero.
 
 .. rubric:: Footnotes



More information about the Python-checkins mailing list