网站首页  词典首页

请输入您要查询的函数:

 

术语 getdynamictimezoneinformation
释义 GetDynamicTimeZoneInformation
语法:
C++
DWORD WINAPI GetDynamicTimeZoneInformation(
__out PDYNAMIC_TIME_ZONE_INFORMATION pTimeZoneInformation
);
GetDynamicTimeZoneInformation功能
获取当前的时区和动态夏令时的设置。这些设置控制与协调世界时(UTC)和本地时间的翻译。
参数
pTimeZoneInformation [out]
一个 DYNAMIC_TIME_ZONE_INFORMATION结构的指针。
返回值
如果函数成功,它返回下面的值之一。
返回代码/ valueDescription
TIME_ZONE_ID_UNKNOWN
0Daylight节省时间不是用在当前的时区,因为没有过渡日期。
TIME_ZONE_ID_STANDARD
1The系统的运作已经由DYNAMIC_TIME_ZONE_INFORMATION结构StandardDate成员所涵盖的范围。
TIME_ZONE_ID_DAYLIGHT
2The系统的运作已经由DYNAMIC_TIME_ZONE_INFORMATION结构DaylightDate成员所涵盖的范围。
如果函数失败,返回TIME_ZONE_ID_INVALID。为了获得更多错误信息,调用GetLastError。
要求:
client最低支持Vista
server最低支持 Windows Server 2008
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
DYNAMIC_TIME_ZONE_INFORMATION
SetDynamicTimeZoneInformation
时间函数
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==GetDynamicTimeZoneInformation Function
Retrieves the current time zone and dynamic daylight saving time settings. These settings control the translations between Coordinated Universal Time (UTC) and local time.
Syntax
C++
DWORD WINAPI GetDynamicTimeZoneInformation(
__out PDYNAMIC_TIME_ZONE_INFORMATION pTimeZoneInformation
);
Parameters
pTimeZoneInformation [out]
A pointer to a DYNAMIC_TIME_ZONE_INFORMATION structure.
Return Value
If the function succeeds, it returns one of the following values.
Return code/valueDescription
TIME_ZONE_ID_UNKNOWN
0Daylight saving time is not used in the current time zone, because there are no transition dates.
TIME_ZONE_ID_STANDARD
1The system is operating in the range covered by the StandardDate member of the DYNAMIC_TIME_ZONE_INFORMATION structure.
TIME_ZONE_ID_DAYLIGHT
2The system is operating in the range covered by the DaylightDate member of the DYNAMIC_TIME_ZONE_INFORMATION structure.

If the function fails, it returns TIME_ZONE_ID_INVALID. To get extended error information, call GetLastError .
Requirements
Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2008
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
DYNAMIC_TIME_ZONE_INFORMATION
SetDynamicTimeZoneInformation
Time Functions
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms724318(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:29:44