diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-10-31 00:26:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-31 00:26:06 (GMT) |
commit | 3f819ca138db6945ee4271bf13e42db9f9b3b1e4 (patch) | |
tree | 7eab13b4f9da0c8936d423cd633594cf83ba870f /Doc/library/datetime.rst | |
parent | 68f323715e6627c550d1e8ffed7e36f1bb4aa42b (diff) | |
download | cpython-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.rst | 7 |
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) | |