Skip to content

Commit 6caab08

Browse files
miss-islingtonuatachhugovk
authored
[3.12] gh-85453: Improve instance attributes mark up on datetime.rst (GH-123655) (#123741)
Co-authored-by: edson duarte <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
1 parent 0078146 commit 6caab08

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

Doc/library/datetime.rst

+15-9
Original file line numberDiff line numberDiff line change
@@ -283,17 +283,23 @@ Class attributes:
283283
Note that, because of normalization, ``timedelta.max`` is greater than ``-timedelta.min``.
284284
``-timedelta.max`` is not representable as a :class:`timedelta` object.
285285

286+
286287
Instance attributes (read-only):
287288

288-
+------------------+--------------------------------------------+
289-
| Attribute | Value |
290-
+==================+============================================+
291-
| ``days`` | Between -999999999 and 999999999 inclusive |
292-
+------------------+--------------------------------------------+
293-
| ``seconds`` | Between 0 and 86399 inclusive |
294-
+------------------+--------------------------------------------+
295-
| ``microseconds`` | Between 0 and 999999 inclusive |
296-
+------------------+--------------------------------------------+
289+
.. attribute:: timedelta.days
290+
291+
Between -999,999,999 and 999,999,999 inclusive.
292+
293+
294+
.. attribute:: timedelta.seconds
295+
296+
Between 0 and 86,399 inclusive.
297+
298+
299+
.. attribute:: timedelta.microseconds
300+
301+
Between 0 and 999,999 inclusive.
302+
297303

298304
Supported operations:
299305

0 commit comments

Comments
 (0)