pocketpy/modules/time.md
2026-04-21 14:05:13 +00:00

281 B

time.time()

Returns the current time in seconds since the epoch as a floating point number.

time.sleep(secs)

Suspend execution of the calling thread for the given number of seconds.

time.localtime()

Returns the current struct time as a struct_time object.