File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments