Skip to content

Commit c784b3e

Browse files
[3.12] gh-85453: Make numeric literals consistent across datetime.rst (GH-118245) (#118248)
Remove code formatting from remaining numeric literals. (cherry picked from commit 59a4d52) Co-authored-by: edson duarte <[email protected]>
1 parent 0049e2b commit c784b3e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/datetime.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ The :mod:`!datetime` module exports the following constants:
9191
.. data:: MAXYEAR
9292

9393
The largest year number allowed in a :class:`date` or :class:`.datetime` object.
94-
:const:`MAXYEAR` is ``9999``.
94+
:const:`MAXYEAR` is 9999.
9595

9696
.. attribute:: UTC
9797

@@ -2514,7 +2514,7 @@ information, which are supported in ``datetime.strptime`` but are discarded by
25142514

25152515
For :class:`.time` objects, the format codes for year, month, and day should not
25162516
be used, as :class:`!time` objects have no such values. If they're used anyway,
2517-
``1900`` is substituted for the year, and 1 for the month and day.
2517+
1900 is substituted for the year, and 1 for the month and day.
25182518

25192519
For :class:`date` objects, the format codes for hours, minutes, seconds, and
25202520
microseconds should not be used, as :class:`date` objects have no such
@@ -2642,4 +2642,4 @@ Notes:
26422642
<https://web.archive.org/web/20220531051136/https://webspace.science.uu.nl/~gent0113/calendar/isocalendar.htm>`_
26432643
for a good explanation.
26442644
2645-
.. [#] Passing ``datetime.strptime('Feb 29', '%b %d')`` will fail since ``1900`` is not a leap year.
2645+
.. [#] Passing ``datetime.strptime('Feb 29', '%b %d')`` will fail since 1900 is not a leap year.

0 commit comments

Comments
 (0)