Skip to content

Commit a937113

Browse files
committed
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 b27812d commit a937113

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
@@ -130,7 +130,7 @@ Available Types
130130
.. class:: timedelta
131131
:noindex:
132132

133-
A duration expressing the difference between two :class:`date`, :class:`.time`,
133+
A duration expressing the difference between two :class:`date`
134134
or :class:`.datetime` instances to microsecond resolution.
135135

136136

0 commit comments

Comments
 (0)