From aa40a79e2af0a0b53052f976c19034ca88672a79 Mon Sep 17 00:00:00 2001 From: Brad Wolfe Date: Thu, 24 Nov 2022 12:12:36 +0100 Subject: [PATCH 1/3] correct typo in datetime format codes The documentation referenced '%J', which is not a valid datetime format code. The documentation was changed to reference '%j' instead. --- Doc/library/datetime.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst index f7e2bb3f3c6de3..0e3ee0ba3a96da 100644 --- a/Doc/library/datetime.rst +++ b/Doc/library/datetime.rst @@ -2601,8 +2601,8 @@ Notes: (9) When used with the :meth:`strptime` method, the leading zero is optional - for formats ``%d``, ``%m``, ``%H``, ``%I``, ``%M``, ``%S``, ``%J``, ``%U``, - ``%W``, and ``%V``. Format ``%y`` does require a leading zero. + for formats ``%d``, ``%j``, ``%m``, ``%H``, ``%I``, ``%M``, ``%S``, ``%U``, + ``%V``, and ``%W``. Format ``%y`` does require a leading zero. .. rubric:: Footnotes From 44543958feab90f81fab4beea619575b0e667f15 Mon Sep 17 00:00:00 2001 From: Brad Wolfe Date: Sat, 26 Nov 2022 09:34:54 +0100 Subject: [PATCH 2/3] Revert change to alphabetic order Changing order of arguments made this information inconsistent with above table. Reverting ordering change. --- Doc/library/datetime.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst index 0e3ee0ba3a96da..20556133e4633e 100644 --- a/Doc/library/datetime.rst +++ b/Doc/library/datetime.rst @@ -2601,7 +2601,7 @@ Notes: (9) When used with the :meth:`strptime` method, the leading zero is optional - for formats ``%d``, ``%j``, ``%m``, ``%H``, ``%I``, ``%M``, ``%S``, ``%U``, + for formats ``%d``, ``%m``, ``%H``, ``%I``, ``%M``, ``%S``, ``%j``, ``%U``, ``%V``, and ``%W``. Format ``%y`` does require a leading zero. .. rubric:: Footnotes From db9f059b775ca3764eda3357f5e1c1b25dc03b84 Mon Sep 17 00:00:00 2001 From: Brad Wolfe Date: Sun, 27 Nov 2022 07:04:16 +0100 Subject: [PATCH 3/3] Reverting one more change In previous commit, one ordering change was overlooked. --- Doc/library/datetime.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst index 20556133e4633e..525a0444d9c481 100644 --- a/Doc/library/datetime.rst +++ b/Doc/library/datetime.rst @@ -2602,7 +2602,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``, - ``%V``, and ``%W``. Format ``%y`` does require a leading zero. + ``%W``, and ``%V``. Format ``%y`` does require a leading zero. .. rubric:: Footnotes