PyDocs

Nav

Generic Operating System Services

ctime

time

function
  • ctime(seconds=None, /)
ctime([seconds]) -> string

Convert a time in seconds since the Epoch to a string in local time.
This is equivalent to asctime(localtime(seconds)). When 'seconds' is not
passed in, convert the current time instead.
Changed in 3.15
  • 3.15: Accepts any real number, not only integer or float.
0 Examples
No examples for time/ctime.
See Also
No see-alsos for time/ctime
0 Notes
No notes for ctime