The following functions are used with system time.
| Function | Description |
| Retrieves the current system date and time in UTC format. | |
| Determines whether the system is applying periodic time adjustments to its time-of-day clock. | |
| GetTimeFormat | Formats a system time as a time string for a specified locale. |
| Returns the system time. | |
| Converts the specified local time to system time. | |
| Converts the specified system time to the number of seconds since the first second of January 1, 1970. | |
| Sets the current system time and date. | |
| Enables or disables periodic time adjustments to the system's time-of-day clock. | |
| Converts a system time to a file time. | |
| Converts a UTC time to a specified time zone's corresponding local time. | |
| Converts a local time to a UTC time. |
The following functions are used with local time.
| Function | Description |
| Converts a UTC file time to a local file time. | |
| Retrieves the current time zone and dynamic daylight saving time settings. | |
| Retrieves the current local date and time. | |
| Retrieves the current time zone settings. | |
| Retrieves the time zone settings for the specified year and time zone. | |
| Converts the specified local time to system time. | |
| Sets the current time zone and dynamic daylight saving time settings. | |
| Sets the current local time and date. | |
| Sets the current time zone settings. | |
| Converts a UTC time to a specified time zone's corresponding local time. | |
| Converts a local time to a UTC time. |
The following functions are used with file time.
| Function | Description |
| Compares two file times. | |
| Converts a UTC file time to a local file time. | |
| Converts a file time to system time format. | |
| Retrieves the date and time that the specified file or directory was created, last accessed, and last modified. | |
| Retrieves the current system date and time in UTC format. | |
| Converts a local file time to a file time based on UTC. | |
| Sets the date and time that the specified file or directory was created, last accessed, or last modified. | |
| Converts a system time to a file time. |
The following functions are used with MS-DOS date and time.
| Function | Description |
| Converts MS-DOS date and time values to a file time. | |
| Converts a file time to MS-DOS date and time values. |
The following functions are used with Windows time.
| Function | Description |
| Retrieves system timing information. | |
| Retrieves the number of milliseconds that have elapsed since the system was started, up to 49.7 days. | |
| Retrieves the number of milliseconds that have elapsed since the system was started. |
Send comments about this topic to Microsoft
Build date: 8/15/2007

2万+

被折叠的 条评论
为什么被折叠?



