utime
- gmtime(epoch) 🟠
- Returns
a tuple containing the time and data according to GMT. If the epoch argument is provided, the epoch timestamp is used, other the internal time of the device
- localtime(epoch) 🟠
- Returns
a tuple containing the time and data according to local time. If the epoch argument is provided, the epoch timestamp is used, other the internal time of the device
- mktime 🟠
The inverse of gmtime(). :param timespec :type: tuple :returns: an epoch seconds value from the 9-tuple given
- time() 🟠
- Returns
the number of seconds since the epoch. If the true time hasn’t been set, this will be the number of seconds since power on
- set_time(secs) 🟠
Set the real time clock to a given value in seconds from the epoch
- sleep(secs) 🟠
Sleep for a given number of seconds
- sleep_ms(msecs) 🟠
Sleep for a given number of milliseconds
- sleep_us(usecs) 🟠
Sleep for a given number of microseconds
- ticks_ms() 🟠
Returns the time in ms since power on
- ticks_us() 🟠
Returns the time in us since power on