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 ff9ece9

Browse filesBrowse files
miss-islingtonuatachhugovk
authored
[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>
1 parent 5e03734 commit ff9ece9
Copy full SHA for ff9ece9

File tree

1 file changed

+15
-9
lines changed
Filter options

1 file changed

+15
-9
lines changed

‎Doc/library/datetime.rst

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