summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjaminHelyer <91896754+BenjaminHelyer@users.noreply.github.com>2022-07-29 00:09:51 (GMT)
committerGitHub <noreply@github.com>2022-07-29 00:09:51 (GMT)
commit6e44bf9558dbcaffd78b7c4fc7f6b474388b4a9a (patch)
tree59909424ef8ef83721b2b02be7dd023d1007ef61
parent06fc249135e5b98a74fc0213e157e80412354659 (diff)
downloadcpython-6e44bf9558dbcaffd78b7c4fc7f6b474388b4a9a.zip
cpython-6e44bf9558dbcaffd78b7c4fc7f6b474388b4a9a.tar.gz
cpython-6e44bf9558dbcaffd78b7c4fc7f6b474388b4a9a.tar.bz2
Improve documentation for adding datetime and timedelta (gh-95403)
-rw-r--r--Doc/library/datetime.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst
index 710f83c..0f04237 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) |