Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1033b31

Browse files
committed
Fix time.time() references in the time module docs
Closes #14842.
1 parent b15d1a7 commit 1033b31

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Doc/library/time.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ An explanation of some terminology and conventions is in order.
8181
the units in which their value or argument is expressed. E.g. on most Unix
8282
systems, the clock "ticks" only 50 or 100 times a second.
8383

84-
* On the other hand, the precision of :func:`time` and :func:`sleep` is better
84+
* On the other hand, the precision of :func:`.time` and :func:`sleep` is better
8585
than their Unix equivalents: times are expressed as floating point numbers,
86-
:func:`time` returns the most accurate time available (using Unix
86+
:func:`.time` returns the most accurate time available (using Unix
8787
:c:func:`gettimeofday` where available), and :func:`sleep` will accept a time
8888
with a nonzero fraction (Unix :c:func:`select` is used to implement this, where
8989
available).
@@ -177,7 +177,7 @@ The module defines the following functions and data items:
177177

178178
Convert a time expressed in seconds since the epoch to a string representing
179179
local time. If *secs* is not provided or :const:`None`, the current time as
180-
returned by :func:`time` is used. ``ctime(secs)`` is equivalent to
180+
returned by :func:`.time` is used. ``ctime(secs)`` is equivalent to
181181
``asctime(localtime(secs))``. Locale information is not used by :func:`ctime`.
182182

183183

@@ -190,7 +190,7 @@ The module defines the following functions and data items:
190190

191191
Convert a time expressed in seconds since the epoch to a :class:`struct_time` in
192192
UTC in which the dst flag is always zero. If *secs* is not provided or
193-
:const:`None`, the current time as returned by :func:`time` is used. Fractions
193+
:const:`None`, the current time as returned by :func:`.time` is used. Fractions
194194
of a second are ignored. See above for a description of the
195195
:class:`struct_time` object. See :func:`calendar.timegm` for the inverse of this
196196
function.
@@ -199,7 +199,7 @@ The module defines the following functions and data items:
199199
.. function:: localtime([secs])
200200

201201
Like :func:`gmtime` but converts to local time. If *secs* is not provided or
202-
:const:`None`, the current time as returned by :func:`time` is used. The dst
202+
:const:`None`, the current time as returned by :func:`.time` is used. The dst
203203
flag is set to ``1`` when DST applies to the given time.
204204

205205

@@ -208,7 +208,7 @@ The module defines the following functions and data items:
208208
This is the inverse function of :func:`localtime`. Its argument is the
209209
:class:`struct_time` or full 9-tuple (since the dst flag is needed; use ``-1``
210210
as the dst flag if it is unknown) which expresses the time in *local* time, not
211-
UTC. It returns a floating point number, for compatibility with :func:`time`.
211+
UTC. It returns a floating point number, for compatibility with :func:`.time`.
212212
If the input value cannot be represented as a valid time, either
213213
:exc:`OverflowError` or :exc:`ValueError` will be raised (which depends on
214214
whether the invalid value is caught by Python or the underlying C libraries).

0 commit comments

Comments
 (0)