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

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


https://github.com/python/cpython/commit/e6b0bd59481b9bc4570736c1f5ef291dbbe06b8e
commit: e6b0bd59481b9bc4570736c1f5ef291dbbe06b8e
branch: 3.10
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:28:51-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 c2d7715a52cf..f222ec9bb771 100644
--- a/Doc/library/datetime.rst
+++ b/Doc/library/datetime.rst
@@ -2570,7 +2570,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