您的位置:首页 > 其它

[积累]关于时间的一些函数/结构/概念

2010-07-08 16:16 375 查看
Win32 API

 

1)

BOOL WINAPI SetLocalTime(
  __in  const SYSTEMTIME* lpSystemTime
);

 

The system uses UTC internally. Therefore, when you call SetLocalTime, the system uses the current time zone information to perform the conversion, including the daylight saving time setting. Note that the system uses the daylight saving time setting of the current time, not the new time you are setting. Therefore, to ensure the correct result, call SetLocalTime a second time, now that the first call has updated the daylight saving time setting.

 

void WINAPI GetLocalTime(
  __out  LPSYSTEMTIME lpSystemTime
);

 

2)

void WINAPI GetSystemTime(
  __out  LPSYSTEMTIME lpSystemTime
);

 

Retrieves the current system date and time. The system time is expressed in Coordinated Universal Time (UTC).

 

BOOL WINAPI SetSystemTime(
__in  const SYSTEMTIME* lpSystemTime
);

 

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  winapi system date api