Time Functions

Send Feedback

The following table shows the time functions with a description of the purpose of each.

Programming element PPC SP Description
CompareFileTime X X This function compares two 64-bit file times.
FileTimeToLocalFileTime X   This function converts a file time based on the Universal Time Coordinate (UTC) to a local file time.
FileTimeToSystemTime X X This function converts a 64-bit file time to system time format.
GetCurrentFT X X This function returns a system time converted to a FILETIME based on the Coordinated Universal Time.
GetFileTime X X This function retrieves the date and time that a file was created, last accessed, and last modified.
GetIdleTime X X This function returns the amount of time, in milliseconds, that the system has been idle.
GetLocalTime X X This function retrieves the current local date and time.
GetSystemTime X X This function retrieves the current system date and time.
GetTickCount X X For Release configurations, this function returns the number of milliseconds since boot, excluding any time that the system was suspended.

For Debug configurations, this function returns the number of milliseconds since boot minus 180 seconds.

GetTimeZoneInformation X X This function retrieves the current time-zone parameters.
LocalFileTimeToFileTime X X This function converts a local file time to a file time based on the UTC.
QueryPerformanceCounter X X This function retrieves the current value of the high-resolution performance counter if one is provided by the OEM.
QueryPerformanceFrequency X X This function retrieves the frequency of the high-resolution performance counter if one is provided by the OEM.
Random X X This function generates a random number.
SetDaylightTime X X This function sets the current state of daylight saving time.
SetFileTime X X This function sets the date and time that a file was created, last accessed, or last modified.
SetLocalTime X X This function sets the current local time and date.
SetSystemTime X X This function sets the current system time and date.
SetTimeZoneInformation X X This function sets the current time-zone parameters.
SystemTimeToFileTime X X This function converts a system time to a file time.

See Also

Time Reference

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.