Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 59a4d52

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

File tree

1 file changed

+3
-3
lines changed
Filter options

1 file changed

+3
-3
lines changed

‎Doc/library/datetime.rst

Copy file name to clipboardExpand all lines: Doc/library/datetime.rst
+3-3Lines changed: 3 additions & 3 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.