iPXE
|
Date and time. More...
Go to the source code of this file.
Data Structures | |
struct | tm |
Broken-down time. More... | |
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
static | __attribute__ ((always_inline)) time_t time(time_t *t) |
Get current time in seconds since the Epoch. More... | |
time_t | mktime (struct tm *tm) |
Calculate seconds since the Epoch. More... | |
Date and time.
Definition in file time.h.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
inlinestatic |
Get current time in seconds since the Epoch.
t | Time to fill in, or NULL |
time | Current time |
Definition at line 42 of file time.h.
References time_now(), and time_offset.
Calculate seconds since the Epoch.
tm | Broken-down time |
time | Seconds since the Epoch |
Definition at line 117 of file time.c.
References day_of_week(), days_to_month_start, DBGC, is_leap_year(), leap_years_to_end(), seconds, tm::tm_hour, tm::tm_mday, tm::tm_min, tm::tm_mon, tm::tm_sec, tm::tm_wday, tm::tm_yday, tm::tm_year, and weekdays.
Referenced by asn1_generalized_time(), efi_get_time(), and rtc_read_time().