27.10.2015 Views

Advanced Configuration and Power Interface Specification

ACPI_6.0

ACPI_6.0

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Advanced</strong> <strong>Configuration</strong> <strong>and</strong> <strong>Power</strong> <strong>Interface</strong> <strong>Specification</strong><br />

Buffer(){<br />

WORD Year; // 1900 - 9999<br />

BYTE Month; // 1 - 12<br />

BYTE Day; // 1 - 31<br />

BYTE Hour; // 0 - 23<br />

BYTE Minute; // 0 - 59<br />

BYTE Second; // 0 - 59<br />

BYTE Pad1;<br />

WORD milliseconds, // 1-1000<br />

WORD TimeZone; // -1440 to 1440 or 2047 (unspecified)<br />

BYTE Daylight;<br />

BYTE Pad2[3]; // Reserved, must be zero<br />

}<br />

Return Value:<br />

An Integer:<br />

0 - success<br />

0xFFFFFFFF- Failed<br />

Note: Time is maintained using a battery backed time device (e.g. a real time clock)<br />

Note: The time will always be local time; the time zone value can be used to determine the offset from<br />

UTC.<br />

Note: Time zone field is the number of minutes that the local time lags behind the UTC time. (i.e. time<br />

zone = UTC - local time). The time zone is in 2's complement format.<br />

Note: Time zone value of 2047, means that time zone value is not specified, <strong>and</strong> no relation to UTC can<br />

be inferred.<br />

Note: Daylight is a bitmask containing the daylight savings time information for the time, as follows:<br />

Bit [0]: 1 = the time is affected by daylight savings time, 0= time is not affected by daylight<br />

savings. This value does not indicate that the time has been adjusted for daylight savings time.<br />

It indicates only that it should be adjusted when the time enters daylight savings time.<br />

Bit [1]: 1= the time has been adjusted for daylight savings time, 0= the time hasn't been adjusted<br />

for daylight savings.<br />

All other bits must be zero.<br />

When entering daylight saving time, if the time is affected, but hasn't been adjusted (DST = 1), use<br />

the new calculation:<br />

• The date/time should be increased by the appropriate amount.<br />

• The TimeZone should be decreased by the appropriate amount (EX: +480 changes to +420 when<br />

moving from PST to PDT).<br />

• The Daylight value changes to 3.<br />

When exiting daylight saving time, if the time is affected <strong>and</strong> has been adjusted (DST = 3), use the<br />

new calculation:<br />

• The date/time should be decreased by the appropriate amount.<br />

• The TimeZone should be increased by the appropriate amount.<br />

• The Daylight value changes to 1.<br />

544 April, 2015 Version 6.0

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!