File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -2587,15 +2587,15 @@ Broadly speaking, ``d.strftime(fmt)`` acts like the :mod:`time` module's
25872587``time.strftime(fmt, d.timetuple()) `` although not all objects support a
25882588:meth: `~date.timetuple ` method.
25892589
2590- For the :meth: `.datetime.strptime ` and :meth: ` .date.strptime ` class methods,
2591- the default value is ``1900-01-01T00:00:00.000 ``: any components not specified
2592- in the format string will be pulled from the default value.
2590+ For the :meth: `.datetime.strptime ` class method, the default value is
2591+ ``1900-01-01T00:00:00.000 ``: any components not specified in the format string
2592+ will be pulled from the default value.
25932593
25942594.. note ::
25952595 When used to parse partial dates lacking a year, :meth: `.datetime.strptime `
2596- and :meth: ` .date.strptime ` will raise when encountering February 29 because
2597- the default year of 1900 is *not * a leap year. Always add a default leap
2598- year to partial date strings before parsing.
2596+ will raise when encountering February 29 because the default year of 1900 is
2597+ *not * a leap year. Always add a default leap year to partial date strings
2598+ before parsing.
25992599
26002600
26012601.. testsetup ::
You can’t perform that action at this time.
0 commit comments