Skip to content

Commit a77c3da

Browse files
committed
Docs edit
1 parent 1956662 commit a77c3da

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Doc/library/datetime.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2639,11 +2639,11 @@ Notes:
26392639
or ``%x`` format code, no longer requires the *year* part of the
26402640
input to be zero-padded to the usual width (which is either 4 or
26412641
2 digits, depending on the format code and current locale). In
2642-
previous versions, a :exc:`ValueError` was raised if a shorter
2643-
*year* (not zero-padded to the 2- or 4-digit width as appropriate)
2644-
was part of the input. It is worth noting that, depending on the
2645-
platform/locale, such inputs may be produced by using
2646-
:meth:`~.datetime.strftime` with ``%c`` or ``%x``).
2642+
previous versions, a :exc:`ValueError` was raised if a narrower
2643+
(i.e., not zero-padded) year representation was part of the input
2644+
(and it is worth noting that, depending on the platform/locale,
2645+
such inputs may be produced by using :meth:`~.datetime.strftime`
2646+
with ``%c`` or ``%x``).
26472647

26482648
(2)
26492649
The :meth:`~.datetime.strptime` method can parse years in the full [1, 9999] range, but

0 commit comments

Comments
 (0)