Skip to content

Commit 59a4d52

Browse files
authored
gh-85453: Make numeric literals consistent across datetime.rst (#118245)
Remove code formatting from remaining numeric literals.
1 parent 809aa9a commit 59a4d52

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

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

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

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

0 commit comments

Comments
 (0)