summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorRussell Owen <rowen@uw.edu>2020-03-24 03:41:40 (GMT)
committerGitHub <noreply@github.com>2020-03-24 03:41:40 (GMT)
commit6000087fe979705dc588a46a35da884cc0198c67 (patch)
treebb030336c380f218a2a878f204fb495371103d89 /Doc
parent70d9d74411c121896820e137ecd56e55c087adcc (diff)
downloadcpython-6000087fe979705dc588a46a35da884cc0198c67.zip
cpython-6000087fe979705dc588a46a35da884cc0198c67.tar.gz
cpython-6000087fe979705dc588a46a35da884cc0198c67.tar.bz2
closes bpo-40017: Add CLOCK_TAI constant to the time module. (GH-19096)
Co-authored-by: Benjamin Peterson <benjamin@python.org>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/time.rst11
1 files changed, 10 insertions, 1 deletions
diff --git a/Doc/library/time.rst b/Doc/library/time.rst
index 6842e90..cff6320 100644
--- a/Doc/library/time.rst
+++ b/Doc/library/time.rst
@@ -774,6 +774,16 @@ These constants are used as parameters for :func:`clock_getres` and
.. versionadded:: 3.7
+.. data:: CLOCK_TAI
+
+ `International Atomic Time <https://www.nist.gov/pml/time-and-frequency-division/nist-time-frequently-asked-questions-faq#tai>`_
+
+ The system must have a current leap second table in order for this to give
+ the correct answer. PTP or NTP software can maintain a leap second table.
+
+ .. availability:: Linux.
+
+ .. versionadded:: 3.9
.. data:: CLOCK_THREAD_CPUTIME_ID
@@ -805,7 +815,6 @@ These constants are used as parameters for :func:`clock_getres` and
.. versionadded:: 3.8
-
The following constant is the only parameter that can be sent to
:func:`clock_settime`.