Windows MFC Time Functions

Time Functions

The following functions are used with system time.

Function

Description

GetSystemTime

Retrieves the current system date and time in UTC format.

GetSystemTimeAdjustment

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.

NtQuerySystemTime

Returns the system time.

RtlLocalTimeToSystemTime

Converts the specified local time to system time.

RtlTimeToSecondsSince1970

Converts the specified system time to the number of seconds since the first second of January 1, 1970.

SetSystemTime

Sets the current system time and date.

SetSystemTimeAdjustment

Enables or disables periodic time adjustments to the system's time-of-day clock.

SystemTimeToFileTime

Converts a system time to a file time.

SystemTimeToTzSpecificLocalTime

Converts a UTC time to a specified time zone's corresponding local time.

TzSpecificLocalTimeToSystemTime

Converts a local time to a UTC time.

The following functions are used with local time.

Function

Description

FileTimeToLocalFileTime

Converts a UTC file time to a local file time.

GetDynamicTimeZoneInformation

Retrieves the current time zone and dynamic daylight saving time settings.

GetLocalTime

Retrieves the current local date and time.

GetTimeZoneInformation

Retrieves the current time zone settings.

GetTimeZoneInformationForYear

Retrieves the time zone settings for the specified year and time zone.

RtlLocalTimeToSystemTime

Converts the specified local time to system time.

SetDynamicTimeZoneInformation

Sets the current time zone and dynamic daylight saving time settings.

SetLocalTime

Sets the current local time and date.

SetTimeZoneInformation

Sets the current time zone settings.

SystemTimeToTzSpecificLocalTime

Converts a UTC time to a specified time zone's corresponding local time.

TzSpecificLocalTimeToSystemTime

Converts a local time to a UTC time.

The following functions are used with file time.

Function

Description

CompareFileTime

Compares two file times.

FileTimeToLocalFileTime

Converts a UTC file time to a local file time.

FileTimeToSystemTime

Converts a file time to system time format.

GetFileTime

Retrieves the date and time that the specified file or directory was created, last accessed, and last modified.

GetSystemTimeAsFileTime

Retrieves the current system date and time in UTC format.

LocalFileTimeToFileTime

Converts a local file time to a file time based on UTC.

SetFileTime

Sets the date and time that the specified file or directory was created, last accessed, or last modified.

SystemTimeToFileTime

Converts a system time to a file time.

The following functions are used with MS-DOS date and time.

Function

Description

DosDateTimeToFileTime

Converts MS-DOS date and time values to a file time.

FileTimeToDosDateTime

Converts a file time to MS-DOS date and time values.

The following functions are used with Windows time.

Function

Description

GetSystemTimes

Retrieves system timing information.

GetTickCount

Retrieves the number of milliseconds that have elapsed since the system was started, up to 49.7 days.

GetTickCount64

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

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值