summaryrefslogtreecommitdiffstats
path: root/Doc/library/datetime.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-10-31 00:26:06 (GMT)
committerGitHub <noreply@github.com>2018-10-31 00:26:06 (GMT)
commit3f819ca138db6945ee4271bf13e42db9f9b3b1e4 (patch)
tree7eab13b4f9da0c8936d423cd633594cf83ba870f /Doc/library/datetime.rst
parent68f323715e6627c550d1e8ffed7e36f1bb4aa42b (diff)
downloadcpython-3f819ca138db6945ee4271bf13e42db9f9b3b1e4.zip
cpython-3f819ca138db6945ee4271bf13e42db9f9b3b1e4.tar.gz
cpython-3f819ca138db6945ee4271bf13e42db9f9b3b1e4.tar.bz2
bpo-35110: Fix unintentional spaces around hyphens and dashes. (GH-10231)
Diffstat (limited to 'Doc/library/datetime.rst')
-rw-r--r--Doc/library/datetime.rst7
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst
index 0363111..db3a652 100644
--- a/Doc/library/datetime.rst
+++ b/Doc/library/datetime.rst
@@ -276,9 +276,10 @@ Supported operations:
| ``+t1`` | Returns a :class:`timedelta` object with the |
| | same value. (2) |
+--------------------------------+-----------------------------------------------+
-| ``-t1`` | equivalent to :class:`timedelta`\ |
-| | (-*t1.days*, -*t1.seconds*, |
-| | -*t1.microseconds*), and to *t1*\* -1. (1)(4) |
+| ``-t1`` | equivalent to |
+| | :class:`timedelta`\ (-*t1.days*, |
+| | -*t1.seconds*, -*t1.microseconds*), |
+| | and to *t1*\* -1. (1)(4) |
+--------------------------------+-----------------------------------------------+
| ``abs(t)`` | equivalent to +\ *t* when ``t.days >= 0``, and|
| | to -*t* when ``t.days < 0``. (2) |