GetSystemTime
GetSystemTime retrieves the current system date and time in Coordinated Universal Time (UTC) format. To retrieve the current system date and time in local time, use the GetLocalTime function.
Syntax
VOID GetSystemTime(
LPSYSTEMTIME lpSystemTime
);
Parameters
lpSystemTime
A pointer to a SYSTEMTIME structure to receive the current system date and time.
Return Value
None
Remarks
eRTOS 1.0 uses PC Real-Time Clock (RTC) as the hardware resource to provide current local date and time. Since the resolution of RTC is in second, the wMilliseconds field in SYSTEMTIME received from GetSystemTime is always 0 (zero).
Requirements
Minimum supported version | Header | Library |
---|---|---|
eRTOS 1.0 SDK |
sysinfoapi.h (include Windows.h) | rtkrnl.lib |