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

(cherry picked from commit 6e44bf9558)

Co-authored-by: BenjaminHelyer <91896754+BenjaminHelyer@users.noreply.github.com>

Co-authored-by: BenjaminHelyer <91896754+BenjaminHelyer@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2022-07-28 17:15:24 -07:00 committed by GitHub
parent b9b70dd4de
commit 5632c98f4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -581,8 +581,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) |