GetLocalTime
GetLocalTime retrieves the current local date and time. To retrieve the current date and time in Coordinated Universal Time (UTC) format, use the GetSystemTime function.
Syntax
VOID GetLocalTime(
LPSYSTEMTIME lpSystemTime
);
Parameters
lpSystemTime
A pointer to a SYSTEMTIME structure to receive the current local 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 GetLocalTime is always 0 (zero).
Requirements
Minimum supported version | Header | Library |
---|---|---|
eRTOS 1.0 SDK |
sysinfoapi.h (include Windows.h) | rtkrnl.lib |