Home |
RTTarget-32 Programming Manual Function RTCMOSReadTime System Management BIOS (SMBIOS) Advanced Programmable Interrupt Controller (APIC) |
Function RTCMOSReadTimeRTCMOSReadTime reads the current date and time of day from the Real-Time Clock: void RTCMOSReadTime(SYSTEMTIME * T); ParametersTPoints to the SYSTEMTIME structure defined in window.h (respective windows.pas for Delphi). The returned structure is not translated for time zones or daylight saving (summer) timer. It is not recommended to use this function frequently. RTCMOSReadTime is slow and must stop the real-time clock for a short period of time, causing an accumulating time drift. Use RTCMOSSetSystemTime at program startup and then GetLocalTime or tun-time system functions such as time(). This function requires an MC146818A Real-Time Clock on the target.
|