GetSystemTime

int GetSystemTime (int *hours, int *minutes, int *seconds);

Purpose

Gets the system time in numeric format.

Linux This function is not supported.

Note   Windows SDK also contains a GetSystemTime function. If you include windows.h and do not include utility.h, you will receive compile errors if you call the GetSystemTime function.

Parameters

Output
Name Type Description
hours integer The hours component of the time.

Values: 0 to 23
minutes integer The minutes component of the time.

Values: 0 to 59
seconds integer The seconds component of the time.

Values: 0 to 59

Return Value

Name Type Description
result integer The result of the call.

Code Description
0 Success.
-1 Operating system reported failure.