https://github.com/python/cpython/commit/73d20cafb54193c94577ca60df1ba0410b3ced74
commit: 73d20cafb54193c94577ca60df1ba0410b3ced74
branch: main
author: John Belmonte <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2024-02-02T23:42:17+02:00
summary:
Correct timedelta description (GH-101417)
It only represents the difference between two datetime or
date objects, not between two time objects.
files:
M Doc/library/datetime.rst
diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst
index 735c3b24f81509..930af6cbbe9e8d 100644
--- a/Doc/library/datetime.rst
+++ b/Doc/library/datetime.rst
@@ -130,8 +130,8 @@ Available Types
.. class:: timedelta
:noindex:
- A duration expressing the difference between two :class:`date`,
:class:`.time`,
- or :class:`.datetime` instances to microsecond resolution.
+ A duration expressing the difference between two :class:`.datetime`
+ or :class:`date` instances to microsecond resolution.
.. class:: tzinfo
@@ -203,7 +203,7 @@ objects.
--------------------------
A :class:`timedelta` object represents a duration, the difference between two
-dates or times.
+:class:`.datetime` or :class:`date` instances.
.. class:: timedelta(days=0, seconds=0, microseconds=0, milliseconds=0,
minutes=0, hours=0, weeks=0)
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]