mirror of
https://github.com/python/cpython
synced 2024-10-14 16:13:17 +00:00
Correct timedelta description (GH-101417)
It only represents the difference between two datetime or date objects, not between two time objects.
This commit is contained in:
parent
b27812d632
commit
73d20cafb5
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue