Skip to content

Commit f49bba4

Browse files
authored
datetime.rst: correct timedelta description
It was confusingly claimed that `timedelta` could represent the difference between two `datetime.time` objects. Subtraction of two `datetime.time` values is not allowed, nor can a `timedelta` be added to a `time`. And specifically, this conflicted text in the "timedelta Objects" section, stating "A timedelta object represents [...] the difference between two dates or times."
1 parent f5a3d91 commit f49bba4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/datetime.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ Available Types
121121
.. class:: timedelta
122122
:noindex:
123123

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

127127

0 commit comments

Comments
 (0)