[Python-checkins] peps: PEP 418: Replace adjusted with adjustable in time.get_clock_info()

victor.stinner python-checkins at python.org
Tue Jul 10 01:41:57 CEST 2012


http://hg.python.org/peps/rev/a071af7d8e4d
changeset:   4485:a071af7d8e4d
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Tue Jul 10 01:38:53 2012 +0200
summary:
  PEP 418: Replace adjusted with adjustable in time.get_clock_info()

files:
  pep-0418.txt |  9 +++++----
  1 files changed, 5 insertions(+), 4 deletions(-)


diff --git a/pep-0418.txt b/pep-0418.txt
--- a/pep-0418.txt
+++ b/pep-0418.txt
@@ -86,8 +86,8 @@
 * time.monotonic() and time.perf_counter() may or may not be adjusted.
   For example, ``CLOCK_MONOTONIC`` is slewed on Linux, whereas
   ``GetTickCount()`` is not adjusted on Windows.
-  ``time.get_clock_info('monotonic')['adjusted']`` can be used to check
-  if the monotonic clock is adjusted or not.
+  ``time.get_clock_info('monotonic')['adjustable']`` can be used to check
+  if the monotonic clock is adjustable or not.
 * No time.thread_time() function is proposed by this PEP because it is
   not needed by Python standard library nor a common asked feature.
   Such function would only be available on Windows and Linux. On
@@ -120,8 +120,9 @@
    function.  Examples: ``"QueryPerformanceCounter()"``,
    ``"clock_gettime(CLOCK_REALTIME)"``.
  * ``monotonic`` (bool): True if the clock cannot go backward.
- * ``adjusted`` (bool): True if the clock can be adjusted (e.g. by a
-   NTP daemon).
+ * ``adjustable`` (bool): ``True`` if the clock can be changed automatically
+   (e.g. by a NTP daemon) or manually by the system administrator, ``False``
+   otherwise
  * ``resolution`` (float): resolution in seconds of the clock.
 
 

-- 
Repository URL: http://hg.python.org/peps


More information about the Python-checkins mailing list