]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-99728: correct typo in `datetime` format codes documentation (GH-99750)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 10 Dec 2022 10:28:51 +0000 (02:28 -0800)
committerGitHub <noreply@github.com>
Sat, 10 Dec 2022 10:28:51 +0000 (02:28 -0800)
(cherry picked from commit d5f8a2b6ad408368e728a389da918cead3ef7ee9)

Co-authored-by: Brad Wolfe <brad.wolfe@gmail.com>
Doc/library/datetime.rst

index c2d7715a52cf6bb11c79223e1d0a41d7d9e45b45..f222ec9bb771a89c16e0a6df20624b99d094dd41 100644 (file)
@@ -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