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:
John Belmonte 2024-02-03 06:42:17 +09:00 committed by GitHub
parent b27812d632
commit 73d20cafb5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)