The time namespace offers some simple time-related functions.
time
asctime(t)
Given a UNIX-style timestamp, t, a common string equivalent is returned: "Wed Nov 2 11:58:20 2011"
t
localtime()
Returns the current time as a floating-point UNIX timestamp.
utctime()
Returns the current time in UTC as a floating-point UNIX timestamp.
sleep(t)
Suspends execution for approximately t seconds, which may be a float.
There was an error while loading. Please reload this page.