Time
Time¶
function set¶
set(timestamp)
timestamp seconds since unix epoch. function time¶
time()
function now¶
now()
function is_sync¶
is_sync()
function last_sync¶
last_sync()
function time_ns¶
time_ns()
function millis¶
millis()
function settime¶
settime(ti)
ti TimeInfo object. function localtime¶
localtime()
function gmtime¶
gmtime(secs)
secs) and returns tuple with the following format: (year, month, day, hours, minutes, seconds, week_day, year_day) function mktime¶
mktime(t_tup)
(year, month, day, hours, minutes, seconds, week_day, year_day). *** note ***: week_day, year_day are not necessary on the tuple to make this function work.
class TimeInfo¶
TimeInfo()
struct tm) as defined by POSIX.1-2001. method to_tuple¶
to_tuple()
method from_tuple¶
from_tuple(t)
t broken-down time tuple. method get_unix¶
get_unix()
Broken-down time¶
A broken-down time is a tuple with the following elements:
- year
- month
- month day
- hour
- minutes
- seconds
- week day
- year day
- whether it is daylight saving time: True, or not: False
- whether the Greenwich Mean Time if off: True, or not: False
- seconds since epoch
- microseconds since epoch