@@ -122,16 +122,17 @@ An explanation of some terminology and conventions is in order.
122122Functions
123123---------
124124
125- .. function :: asctime([t ])
125+ .. function :: asctime([time_tuple ])
126126
127127 Convert a tuple or :class: `struct_time ` representing a time as returned by
128128 :func: `gmtime ` or :func: `localtime ` to a string of the following
129129 form: ``'Sun Jun 20 23:21:05 1993' ``. The day field is two characters long
130130 and is space padded if the day is a single digit,
131131 e.g.: ``'Wed Jun 9 04:26:40 1993' ``.
132132
133- If *t * is not provided, the current time as returned by :func: `localtime `
134- is used. Locale information is not used by :func: `asctime `.
133+ If *time_tuple * is not provided, the current time as returned by
134+ :func: `localtime ` is used. Locale information is not used by
135+ :func: `asctime `.
135136
136137 .. note ::
137138
@@ -214,16 +215,16 @@ Functions
214215 .. versionadded :: 3.7
215216
216217
217- .. function :: ctime([secs ])
218+ .. function :: ctime([seconds ])
218219
219220 Convert a time expressed in seconds since the epoch _ to a string of a form:
220221 ``'Sun Jun 20 23:21:05 1993' `` representing local time. The day field
221222 is two characters long and is space padded if the day is a single digit,
222223 e.g.: ``'Wed Jun 9 04:26:40 1993' ``.
223224
224- If *secs * is not provided or :const: `None `, the current time as
225- returned by :func: `.time ` is used. ``ctime(secs ) `` is equivalent to
226- ``asctime(localtime(secs )) ``. Locale information is not used by
225+ If *seconds * is not provided or :const: `None `, the current time as
226+ returned by :func: `.time ` is used. ``ctime(seconds ) `` is equivalent to
227+ ``asctime(localtime(seconds )) ``. Locale information is not used by
227228 :func: `ctime `.
228229
229230 .. versionchanged :: 3.15
@@ -255,10 +256,10 @@ Functions
255256 .. versionadded :: 3.3
256257
257258
258- .. function :: gmtime([secs ])
259+ .. function :: gmtime([seconds ])
259260
260261 Convert a time expressed in seconds since the epoch _ to a :class: `struct_time ` in
261- UTC in which the dst flag is always zero. If *secs * is not provided or
262+ UTC in which the dst flag is always zero. If *seconds * is not provided or
262263 :const: `None `, the current time as returned by :func: `.time ` is used. Fractions
263264 of a second are ignored. See above for a description of the
264265 :class: `struct_time ` object. See :func: `calendar.timegm ` for the inverse of this
@@ -268,11 +269,11 @@ Functions
268269 Accepts any real number, not only integer or float.
269270
270271
271- .. function :: localtime([secs ])
272+ .. function :: localtime([seconds ])
272273
273- Like :func: `gmtime ` but converts to local time. If *secs * is not provided or
274- :const: `None `, the current time as returned by :func: `.time ` is used. The dst
275- flag is set to ``1 `` when DST applies to the given time.
274+ Like :func: `gmtime ` but converts to local time. If *seconds * is not
275+ provided or :const: `None `, the current time as returned by :func: `.time `
276+ is used. The dst flag is set to ``1 `` when DST applies to the given time.
276277
277278 :func: `localtime ` may raise :exc: `OverflowError `, if the timestamp is
278279 outside the range of values supported by the platform C :c:func: `localtime `
@@ -284,7 +285,7 @@ Functions
284285 Accepts any real number, not only integer or float.
285286
286287
287- .. function :: mktime(t )
288+ .. function :: mktime(time_tuple )
288289
289290 This is the inverse function of :func: `localtime `. Its argument is the
290291 :class: `struct_time ` or full 9-tuple (since the dst flag is needed; use ``-1 ``
@@ -391,7 +392,7 @@ Functions
391392
392393 .. versionadded :: 3.7
393394
394- .. function :: sleep(secs )
395+ .. function :: sleep(seconds )
395396
396397 Suspend execution of the calling thread for the given number of seconds.
397398 The argument may be a non-integer to indicate a more precise sleep time.
@@ -404,13 +405,14 @@ Functions
404405
405406 .. rubric :: Windows implementation
406407
407- On Windows, if *secs * is zero, the thread relinquishes the remainder of its
408- time slice to any other thread that is ready to run. If there are no other
409- threads ready to run, the function returns immediately, and the thread
408+ On Windows, if *seconds * is zero, the thread relinquishes the remainder of
409+ its time slice to any other thread that is ready to run. If there are no
410+ other threads ready to run, the function returns immediately, and the thread
410411 continues execution. On Windows 10 and newer the implementation uses
411412 a `high-resolution timer
412413 <https://learn.microsoft.com/windows/win32/api/synchapi/nf-synchapi-createwaitabletimerexw> `_
413- which provides resolution of 100 nanoseconds. If *secs * is zero, ``Sleep(0) `` is used.
414+ which provides resolution of 100 nanoseconds. If *seconds * is zero,
415+ ``Sleep(0) `` is used.
414416
415417 .. rubric :: Unix implementation
416418
@@ -425,12 +427,12 @@ Functions
425427 To voluntarily relinquish the CPU, specify a real-time :ref: `scheduling
426428 policy <os-scheduling-policy>` and use :func: `os.sched_yield ` instead.
427429
428- .. audit-event :: time.sleep secs
430+ .. audit-event :: time.sleep seconds
429431
430432 .. versionchanged :: 3.5
431- The function now sleeps at least *secs * even if the sleep is interrupted
432- by a signal, except if the signal handler raises an exception (see
433- :pep: `475 ` for the rationale).
433+ The function now sleeps at least *seconds * even if the sleep is
434+ interrupted by a signal, except if the signal handler raises an
435+ exception (see :pep: `475 ` for the rationale).
434436
435437 .. versionchanged :: 3.11
436438 On Unix, the ``clock_nanosleep() `` and ``nanosleep() `` functions are now
@@ -445,13 +447,13 @@ Functions
445447.. index ::
446448 single: % (percent); datetime format
447449
448- .. function :: strftime(format[, t ])
450+ .. function :: strftime(format[, time_tuple ])
449451
450452 Convert a tuple or :class: `struct_time ` representing a time as returned by
451453 :func: `gmtime ` or :func: `localtime ` to a string as specified by the *format *
452- argument. If *t * is not provided, the current time as returned by
454+ argument. If *time_tuple * is not provided, the current time as returned by
453455 :func: `localtime ` is used. *format * must be a string. :exc: `ValueError ` is
454- raised if any field in *t * is outside of the allowed range.
456+ raised if any field in *time_tuple * is outside of the allowed range.
455457
456458 0 is a legal argument for any position in the time tuple; if it is normally
457459 illegal the value is forced to a correct one.
0 commit comments