![Intel Extensible Firmware Interface Specification Download Page 103](http://html1.mh-extra.com/html/intel/extensible-firmware-interface/extensible-firmware-interface_specification_2073117103.webp)
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;
Summary of Contents for Extensible Firmware Interface
Page 1: ...Extensible Firmware Interface Specification Version 1 02 December 12 2000...
Page 4: ...Extensible Firmware Interface Specification iv 12 12 00 Version 1 02...
Page 42: ...Extensible Firmware Interface Specification 24 12 01 00 Version 1 02...
Page 190: ...Extensible Firmware Interface Specification 172 12 12 00 Version 1 02...
Page 200: ...Extensible Firmware Interface Specification 182 12 12 00 Version 1 02...
Page 226: ...Extensible Firmware Interface Specification 208 12 12 00 Version 1 02...
Page 230: ...Extensible Firmware Interface Specification 212 12 12 00 Version 1 02...
Page 252: ...Extensible Firmware Interface Specification 234 12 12 00 Version 1 02...
Page 294: ...Extensible Firmware Interface Specification 276 12 12 00 Version 1 02...
Page 348: ...Extensible Firmware Interface Specification 330 12 01 00 Version 1 01...
Page 350: ...Extensible Firmware Interface Specification 332 12 12 00 Version 1 02...
Page 354: ...Extensible Firmware Interface Specification 336 12 12 00 Version 1 02...
Page 362: ...Extensible Firmware Interface Specification 344 12 12 00 Version 1 02...
Page 486: ...Extensible Firmware Interface Specification 468 12 12 00 Version 1 02...
Page 494: ...Extensible Firmware Interface Specification 476 12 12 00 Version 1 02...