Sets the system time to
timestampseconds since unix epoch.
Returns a float where the integer part is the seconds and the fractional part are microseconds since unix epoch.
Returns an integer with seconds since unix epoch.
Return True if the system time has been synchronized since system (re)start. False otherwise.
Returns the seconds elapsed since last sync.
Returns a float where the integer part is the seconds and the fractional part are nanoseconds since unix epoch.
Returns the milliseconds elapsed since system (re)start.
Sets the system date and time to
Returns a TimeInfo object with current system date and time.
Converts an UNIX EPOCH TIME (
secs) and returns tuple with the following format:
(year, month, day, hours, minutes, seconds, week_day, year_day)
Convers a time tuple and returns a UNIX EPOCH TIME. The tuple should have the following format:
(year, month, day, hours, minutes, seconds, week_day, year_day).
*** note ***:
year_day are not necessary on the tuple to make this function work.
Class used to store a broken-down time value (as in
struct tm) as defined by POSIX.1-2001.
Returns a tuple with the broken-down time elements.
Sets the object time to the
tbroken-down time tuple.
Returns the UNIX EPOCH TIME of the current time.
A broken-down time is a tuple with the following elements:
- month day
- 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