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

Co-authored-by: edson duarte <eduarte.uatach@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2024-09-05 20:16:48 +02:00 committed by GitHub
parent 5e03734c94
commit ff9ece98e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 15 additions and 9 deletions

View File

@ -283,17 +283,23 @@ Class attributes:
Note that, because of normalization, ``timedelta.max`` is greater than ``-timedelta.min``. Note that, because of normalization, ``timedelta.max`` is greater than ``-timedelta.min``.
``-timedelta.max`` is not representable as a :class:`timedelta` object. ``-timedelta.max`` is not representable as a :class:`timedelta` object.
Instance attributes (read-only): Instance attributes (read-only):
+------------------+--------------------------------------------+ .. attribute:: timedelta.days
| Attribute | Value |
+==================+============================================+ Between -999,999,999 and 999,999,999 inclusive.
| ``days`` | Between -999999999 and 999999999 inclusive |
+------------------+--------------------------------------------+
| ``seconds`` | Between 0 and 86399 inclusive | .. attribute:: timedelta.seconds
+------------------+--------------------------------------------+
| ``microseconds`` | Between 0 and 999999 inclusive | Between 0 and 86,399 inclusive.
+------------------+--------------------------------------------+
.. attribute:: timedelta.microseconds
Between 0 and 999,999 inclusive.
Supported operations: Supported operations: