Skip to content
Prev Previous commit
Next Next commit
Update to match the error message.
  • Loading branch information
gpshead committed Mar 21, 2025
commit 4860a009cd824f90fcbd613d0c4663e37aab8ab8
2 changes: 1 addition & 1 deletion Doc/library/datetime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2635,7 +2635,7 @@ will be pulled from the default value.
>>> datetime.strptime(value, "%m/%d")
Traceback (most recent call last):
...
ValueError: day is out of range for month
ValueError: day 29 must be in range 1..28 for month 2 in year 1900
>>> datetime.strptime(f"1904 {value}", "%Y %m/%d")
datetime.datetime(1904, 2, 29, 0, 0)

Expand Down
Loading