summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoredson duarte <eduarte.uatach@gmail.com>2024-04-24 20:19:54 (GMT)
committerGitHub <noreply@github.com>2024-04-24 20:19:54 (GMT)
commit59a4d52973ca73bd739f914e88243a31dbef6b32 (patch)
tree7db0116a4af3688f05210474c9d36b949bc42512
parent809aa9a682fc865f7502e7421da0a74d204aab6d (diff)
downloadcpython-59a4d52973ca73bd739f914e88243a31dbef6b32.zip
cpython-59a4d52973ca73bd739f914e88243a31dbef6b32.tar.gz
cpython-59a4d52973ca73bd739f914e88243a31dbef6b32.tar.bz2
gh-85453: Make numeric literals consistent across datetime.rst (#118245)
Remove code formatting from remaining numeric literals.
-rw-r--r--Doc/library/datetime.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst
index 84fede4..b1b5e04 100644
--- a/Doc/library/datetime.rst
+++ b/Doc/library/datetime.rst
@@ -91,7 +91,7 @@ The :mod:`!datetime` module exports the following constants:
.. data:: MAXYEAR
The largest year number allowed in a :class:`date` or :class:`.datetime` object.
- :const:`MAXYEAR` is ``9999``.
+ :const:`MAXYEAR` is 9999.
.. attribute:: UTC
@@ -2561,7 +2561,7 @@ information, which are supported in ``datetime.strptime`` but are discarded by
For :class:`.time` objects, the format codes for year, month, and day should not
be used, as :class:`!time` objects have no such values. If they're used anyway,
-``1900`` is substituted for the year, and 1 for the month and day.
+1900 is substituted for the year, and 1 for the month and day.
For :class:`date` objects, the format codes for hours, minutes, seconds, and
microseconds should not be used, as :class:`date` objects have no such
@@ -2708,4 +2708,4 @@ Notes:
<https://web.archive.org/web/20220531051136/https://webspace.science.uu.nl/~gent0113/calendar/isocalendar.htm>`_
for a good explanation.
-.. [#] Passing ``datetime.strptime('Feb 29', '%b %d')`` will fail since ``1900`` is not a leap year.
+.. [#] Passing ``datetime.strptime('Feb 29', '%b %d')`` will fail since 1900 is not a leap year.