|
iPXE
|
EFI time source. More...
#include <string.h>#include <errno.h>#include <time.h>#include <ipxe/time.h>#include <ipxe/efi/efi.h>Go to the source code of this file.
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| static time_t | efi_get_time (void) |
| Get current time in seconds. More... | |
| PROVIDE_TIME (efi, time_now, efi_get_time) | |
EFI time source.
Definition in file efi_time.c.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
static |
Get current time in seconds.
| time | Time, in seconds |
Definition at line 43 of file efi_time.c.
References EFI_TIME::Day, DBGC, EEFI, efi_systab, EFI_RUNTIME_SERVICES::GetTime, EFI_TIME::Hour, memset(), EFI_TIME::Minute, mktime(), EFI_TIME::Month, NULL, rc, EFI_SYSTEM_TABLE::RuntimeServices, EFI_TIME::Second, strerror(), tm::tm_hour, tm::tm_mday, tm::tm_min, tm::tm_mon, tm::tm_sec, tm::tm_year, and EFI_TIME::Year.
| PROVIDE_TIME | ( | efi | , |
| time_now | , | ||
| efi_get_time | |||
| ) |
1.8.15