[积累]关于时间的一些函数/结构/概念
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).
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 );
相关文章推荐
- 关于时间的一些函数
- 关于sql时间函数的一些简单的例子(本机本地时间,国外服务器不能使用)
- 关于c语言中时间函数的一些归纳
- 今日收获总结(关于存储过程时间查询的一些方法以及字段截取的函数及调用示例)
- 数据结构中关于树的一些基本概念--随时更新 推荐
- 关于时间函数的一些有用的SQL脚本
- 【积累】Flex中一个关于时间格式化的函数
- 关于C语言中 rand()函数的一些个人积累和见解z
- 关于C语言时间获取函数调用的概念
- sql server 借用函数处理一些关于时间的实用例子
- 数据结构中关于图的一些基本概念
- Sql关于时间的一些常用函数
- 分享一些关于PHP时间函数的常用时间
- 关于创建和attach设备的一些结构和函数——来自wdk文档(WDK 7600.16385.1)
- js中关于时间的一些函数
- 关于c语言中时间函数的一些归纳
- 关于c++的虚函数的一些总结
- 关于Unity的一些概念和语法
- 关于时间的函数
- 关于PHP的一些常用的字符串处理函数