Skip to content

[3.13] gh-85453: Improve instance attributes mark up on datetime.rst (GH-123655) #123740

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 15 additions & 9 deletions Doc/library/datetime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -283,17 +283,23 @@ Class attributes:
Note that, because of normalization, ``timedelta.max`` is greater than ``-timedelta.min``.
``-timedelta.max`` is not representable as a :class:`timedelta` object.


Instance attributes (read-only):

+------------------+--------------------------------------------+
| Attribute | Value |
+==================+============================================+
| ``days`` | Between -999999999 and 999999999 inclusive |
+------------------+--------------------------------------------+
| ``seconds`` | Between 0 and 86399 inclusive |
+------------------+--------------------------------------------+
| ``microseconds`` | Between 0 and 999999 inclusive |
+------------------+--------------------------------------------+
.. attribute:: timedelta.days

Between -999,999,999 and 999,999,999 inclusive.


.. attribute:: timedelta.seconds

Between 0 and 86,399 inclusive.


.. attribute:: timedelta.microseconds

Between 0 and 999,999 inclusive.


Supported operations:

Expand Down
Loading