5.3.14 utime
is 1-366
yearday
utime.localtime([secs])
Like
but converts to local time. If
gmtime()
from the RTC is used.
utime.mktime()
This is inverse function of
as per
. It returns an integer which is the number of seconds since
localtime
utime.sleep(seconds)
Sleep for the given number of
for a fractional number of seconds. Note that other MicroPython ports may not accept
floating-point argument, for compatibility with them use
functions.
utime.sleep_ms(ms)
Delay for given number of milliseconds, should be positive or 0.
utime.sleep_us(us)
Delay for given number of microseconds, should be positive or 0
utime.ticks_ms()
Returns uptime, in milliseconds.
utime.ticks_us()
Just like
above, but in microseconds.
ticks_ms
utime.ticks_cpu()
Same as
, but faster.
ticks_us
utime.ticks_diff(old, new)
Measure period between consecutive calls to
The value returned by these functions may wrap around at any time, so directly subtracting
them is not supported.
precede "new" value in time, or result is undefined. This function should not be used to
secs
. It's argument is a full 8-tuple which expresses a time
localtime
.
seconds
seconds
should be used instead. "old" value should actually
ticks_diff()
is not provided or
can be a floating-point number to sleep
sleep_ms()
,
ticks_ms()
ticks_us()
, the current time
None
Jan 1, 2000
and
sleep_us()
, or
.
ticks_cpu()
.
379
Need help?
Do you have a question about the WiPy 3.0 and is the answer not in the manual?
Questions and answers