Home |
RTTarget-32 Programming Manual Function RTCMOSSetSystemTime System Management BIOS (SMBIOS) Advanced Programmable Interrupt Controller (APIC) |
Function RTCMOSSetSystemTimeRTCMOSSetSystemTime reads the current date and time of day from the Real-Time Clock and calls the Win32 function SetLocalTime: void RTCMOSSetSystemTime(void); Function SetLocalTime or SetSystemTime should be called at least once at program initialization (as done by RTCMOSSetSystemTime) to be able to use the Win32 Date and Time Management or the run-time system's date/time support. If Win32 API function SetZimeZoneInformation has been called, daylight saving time (summer time) is also supported and set correctly if the CMOS real-time clock is set to local standard time, but not local daylight saving time. If RTTarget-32 flag RT_CMOS_RTC_SYNCH is set when this function is called, RTCMOSSetSystemTime will synchronize the CMOS real-time clock with the next seconds increment of the system time. The effect is that the CMOS real-time clock is read more accurately, but RTCMOSSetSystemTime can take up to 1 second to execute. This function requires an MC146818A Real-Time Clock on the target.
|