summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-07-29 00:14:05 (GMT)
committerGitHub <noreply@github.com>2022-07-29 00:14:05 (GMT)
commit3e9a496b6b54fe241a1783140e383d38ad3eb59c (patch)
treec9400025f1e4c6f8ac8cccc3d7bcb88e959edaec
parent309c8f316d1d3db920d5082afdd8b531c8754d1c (diff)
downloadcpython-3e9a496b6b54fe241a1783140e383d38ad3eb59c.zip
cpython-3e9a496b6b54fe241a1783140e383d38ad3eb59c.tar.gz
cpython-3e9a496b6b54fe241a1783140e383d38ad3eb59c.tar.bz2
Improve documentation for adding datetime and timedelta (gh-95403) (gh-95408)
(cherry picked from commit 6e44bf9558dbcaffd78b7c4fc7f6b474388b4a9a) Co-authored-by: BenjaminHelyer <91896754+BenjaminHelyer@users.noreply.github.com> Co-authored-by: BenjaminHelyer <91896754+BenjaminHelyer@users.noreply.github.com>
-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 ef1535c..b4580d1 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) |