The GetLocalTime function retrieves the current local date and time.
VOID GetLocalTime(
LPSYSTEMTIME lpSystemTime // address of system time structure
);Parameters
lpSystemTime
Pointer to a SYSTEMTIME structure to receive the current local date and time.
Return Values
This function does not return a value.
///////////////////////////////////////////////////////
GetSystemTime
The GetSystemTime function retrieves the current system date and time. The system time is expressed in Coordinated Universal Time (UTC).
VOID GetSystemTime(
LPSYSTEMTIME lpSystemTime // address of system time structure
);
Parameters
lpSystemTime
Pointer to a SYSTEMTIME structure to receive the current system date and time.
Return Values
This function does not return a value.