[Python-checkins] Improve documentation for adding datetime and timedelta (gh-95403)

ericvsmith webhook-mailer at python.org
Thu Jul 28 20:09:57 EDT 2022


https://github.com/python/cpython/commit/6e44bf9558dbcaffd78b7c4fc7f6b474388b4a9a
commit: 6e44bf9558dbcaffd78b7c4fc7f6b474388b4a9a
branch: main
author: BenjaminHelyer <91896754+BenjaminHelyer at users.noreply.github.com>
committer: ericvsmith <ericvsmith at users.noreply.github.com>
date: 2022-07-28T20:09:51-04:00
summary:

Improve documentation for adding datetime and timedelta (gh-95403)

files:
M Doc/library/datetime.rst

diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst
index 710f83c72e285..0f042374b6472 100644
--- a/Doc/library/datetime.rst
+++ b/Doc/library/datetime.rst
@@ -589,8 +589,8 @@ Supported operations:
 +-------------------------------+----------------------------------------------+
 | Operation                     | Result                                       |
 +===============================+==============================================+
-| ``date2 = date1 + timedelta`` | *date2* is ``timedelta.days`` days removed   |
-|                               | from *date1*. (1)                            |
+| ``date2 = date1 + timedelta`` | *date2* will be ``timedelta.days`` days      |
+|                               | after *date1*. (1)                           |
 +-------------------------------+----------------------------------------------+
 | ``date2 = date1 - timedelta`` | Computes *date2* such that ``date2 +         |
 |                               | timedelta == date1``. (2)                    |



More information about the Python-checkins mailing list