![Intel Extensible Firmware Interface Specification Download Page 106](http://html1.mh-extra.com/html/intel/extensible-firmware-interface/extensible-firmware-interface_specification_2073117106.webp)
Extensible Firmware Interface Specification
88
12/12/00
Version 1.02
3.6.2 SetTime()
Summary
Sets the current local time and date information.
Prototype
EFI_STATUS
SetTime (
IN EFI_TIME
*Time
);
Parameters
Time
A pointer to the current time. Type
EFI_TIME
is defined in
Section 3.6.1. Full error checking is performed on the different fields of
the
EFI_TIME
structure (refer to the
EFI_TIME
definition on page 85
for full details), and
EFI_INVALID_PARAMETER
is returned if any
field is out of range.
Description
The
SetTime()
function sets the real time clock device to the supplied time, and records the
current time zone and daylight savings time information. The
SetTime()
function is not allowed
to loop based on the current time. For example, if the device does not support a hardware reset for
the sub-resolution time, the code is
not
to implement the feature by waiting for the time to wrap.
During runtime, if a PC-AT CMOS device is present in the platform the caller must synchronize
access to the device before calling
SetTime()
.
Status Codes Returned
EFI_SUCCESS
The operation completed successfully.
EFI_INVALID_PARAMETER
A time field is out of range.
EFI_DEVICE_ERROR
The time could not be set due to a hardware error.
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...