Services
Version 1.02 12/12/00 85
3.6.1 GetTime()Summary
Returns the current time and date information, and the time-keeping capabilities of the hardware
platform.
Prototype
EFI_STATUS
GetTime (
OUT EFI_TIME *Time,
OUT EFI_TIME_CAPABILITIES *Capabilities OPTIONAL
);
Parameters
Time A pointer to storage to receive a snapshot of the current time. Type
EFI_TIME is defined in “Related Definitions”.
Capabilities An optional pointer to a buffer to receive the real time clock device’s
capabilities. Type EFI_TIME_CAPABILITIES is defined in “Related
Definitions”.
Related Definitions
//*******************************************************
//EFI_TIME
//*******************************************************
// This represents the current time information
typedef struct {
UINT16 Year;// 1998 – 20XX
UINT8 Month;// 1 – 12
UINT8 Day;// 1 – 31
UINT8 Hour;// 0 – 23
UINT8 Minute;// 0 – 59
UINT8 Second;// 0 – 59
UINT8 Pad1;
UINT32 Nanosecond;// 0 – 999,999,999
INT16 TimeZone;// -1440 to 1440 or 2047
UINT8 Daylight;
UINT8 Pad2;
} EFI_TIME;