Skip to content

Commit 65cf5a7

Browse files
committed
* clarify the text in 'datetime Objects' section too
* list `datetime` ahead of `date`, since it's more common when using `timedelta`
1 parent a42f1be commit 65cf5a7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/datetime.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ Available Types
121121
.. class:: timedelta
122122
:noindex:
123123

124-
A duration expressing the difference between two :class:`date`
125-
or :class:`.datetime` instances to microsecond resolution.
124+
A duration expressing the difference between two :class:`.datetime`
125+
or :class:`date` instances to microsecond resolution.
126126

127127

128128
.. class:: tzinfo
@@ -194,7 +194,7 @@ objects.
194194
--------------------------
195195

196196
A :class:`timedelta` object represents a duration, the difference between two
197-
dates or times.
197+
:class:`.datetime` or :class:`date` instances.
198198

199199
.. class:: timedelta(days=0, seconds=0, microseconds=0, milliseconds=0, minutes=0, hours=0, weeks=0)
200200

0 commit comments

Comments
 (0)