From: BenjaminHelyer <91896754+BenjaminHelyer@users.noreply.github.com> Date: Fri, 29 Jul 2022 00:09:51 +0000 (-0500) Subject: Improve documentation for adding datetime and timedelta (gh-95403) X-Git-Tag: v3.12.0a1~797 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6e44bf9558dbcaffd78b7c4fc7f6b474388b4a9a;p=thirdparty%2FPython%2Fcpython.git Improve documentation for adding datetime and timedelta (gh-95403) --- diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst index 710f83c72e28..0f042374b647 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) |