From 69161dd208561987386831b9d348688f71178e6a Mon Sep 17 00:00:00 2001 From: BenjaminHelyer <91896754+BenjaminHelyer@users.noreply.github.com> Date: Thu, 28 Jul 2022 19:09:51 -0500 Subject: [PATCH] Improve documentation for adding datetime and timedelta (gh-95403) (cherry picked from commit 6e44bf9558dbcaffd78b7c4fc7f6b474388b4a9a) Co-authored-by: BenjaminHelyer <91896754+BenjaminHelyer@users.noreply.github.com> --- Doc/library/datetime.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst index ef1535c84bd5ad..b4580d1879c018 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) |