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

Skip to content

Commit ed36395

Browse files
committed
Fix time.time() references in the time module docs
Closes #14842.
2 parents fa67aa0 + 1033b31 commit ed36395

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
@@ -62,9 +62,9 @@ An explanation of some terminology and conventions is in order.
6262
the units in which their value or argument is expressed. E.g. on most Unix
6363
systems, the clock "ticks" only 50 or 100 times a second.
6464

65-
* On the other hand, the precision of :func:`time` and :func:`sleep` is better
65+
* On the other hand, the precision of :func:`.time` and :func:`sleep` is better
6666
than their Unix equivalents: times are expressed as floating point numbers,
67-
:func:`time` returns the most accurate time available (using Unix
67+
:func:`.time` returns the most accurate time available (using Unix
6868
:c:func:`gettimeofday` where available), and :func:`sleep` will accept a time
6969
with a nonzero fraction (Unix :c:func:`select` is used to implement this, where
7070
available).
@@ -256,7 +256,7 @@ The module defines the following functions and data items:
256256

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

262262

@@ -284,7 +284,7 @@ The module defines the following functions and data items:
284284

285285
Convert a time expressed in seconds since the epoch to a :class:`struct_time` in
286286
UTC in which the dst flag is always zero. If *secs* is not provided or
287-
:const:`None`, the current time as returned by :func:`time` is used. Fractions
287+
:const:`None`, the current time as returned by :func:`.time` is used. Fractions
288288
of a second are ignored. See above for a description of the
289289
:class:`struct_time` object. See :func:`calendar.timegm` for the inverse of this
290290
function.
@@ -293,7 +293,7 @@ The module defines the following functions and data items:
293293
.. function:: localtime([secs])
294294

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

299299

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

0 commit comments

Comments
 (0)