PyDocs

Nav

Generic Operating System Services

localtime

time

function
  • localtime(seconds=None, /)
localtime([seconds]) -> (tm_year,tm_mon,tm_mday,tm_hour,tm_min,
                          tm_sec,tm_wday,tm_yday,tm_isdst)

Convert seconds since the Epoch to a time tuple expressing local time.
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/localtime.
See Also
No see-alsos for time/localtime
0 Notes
No notes for localtime