网站首页  词典首页

请输入您要查询的函数:

 

术语 gettimezoneinformation
释义 GetTimeZoneInformation
语法:
C++
DWORD WINAPI GetTimeZoneInformation(
__out LPTIME_ZONE_INFORMATION lpTimeZoneInformation
);
GetTimeZoneInformation功能
检索当前的时区设置。这些设置控制与协调世界时(UTC)和本地时间的翻译。
支持节省时间,从一年来的变化,使用GetDynamicTimeZoneInformation或GetTimeZoneInformationForYear功能白天的界限。
参数
lpTimeZoneInformation [out]
一个 TIME_ZONE_INFORMATION结构的指针得到当前的设置。
返回值
如果函数成功,它返回下面的值之一。
返回代码/ valueDescription
TIME_ZONE_ID_UNKNOWN
0Daylight节省时间不是用在当前的时区,因为没有过渡日期或夏令时自动调整被禁用。
TIME_ZONE_ID_STANDARD
1The系统的运作已经由TIME_ZONE_INFORMATION结构StandardDate成员所涵盖的范围。
TIME_ZONE_ID_DAYLIGHT
2The系统的运作已经由TIME_ZONE_INFORMATION结构DaylightDate成员所涵盖的范围。
如果函数失败其他原因,如内存不足错误的,它返回TIME_ZONE_ID_INVALID。为了获得更多错误信息,调用GetLastError。
备注
与UTC时间与本地时间所有的翻译是根据以下公式:
星期日=本地时间+偏见
该偏差的差异,在几分钟内,与UTC时间与本地时间。
实例
有关示例,请参见SetTimeZoneInformation。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
GetDynamicTimeZoneInformation
GetTimeZoneInformationForYear
当地时间
SetTimeZoneInformation
时间函数
TIME_ZONE_INFORMATION
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==GetTimeZoneInformation Function
Retrieves the current time zone settings. These settings control the translations between Coordinated Universal Time (UTC) and local time.
To support boundaries for daylight saving time that change from year to year, use the GetDynamicTimeZoneInformation or GetTimeZoneInformationForYear function.
Syntax
C++
DWORD WINAPI GetTimeZoneInformation(
__out LPTIME_ZONE_INFORMATION lpTimeZoneInformation
);
Parameters
lpTimeZoneInformation [out]
A pointer to a TIME_ZONE_INFORMATION structure to receive the current settings.
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 or automatic adjustment for daylight saving time is disabled.
TIME_ZONE_ID_STANDARD
1The system is operating in the range covered by the StandardDate member of the TIME_ZONE_INFORMATION structure.
TIME_ZONE_ID_DAYLIGHT
2The system is operating in the range covered by the DaylightDate member of the TIME_ZONE_INFORMATION structure.

If the function fails for other reasons, such as an out of memory error, it returns TIME_ZONE_ID_INVALID. To get extended error information, call GetLastError .
Remarks
All translations between UTC time and local time are based on the following formula:
UTC = local time + bias
The bias is the difference, in minutes, between UTC time and local time.
Examples
For an example, see SetTimeZoneInformation .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
GetDynamicTimeZoneInformation
GetTimeZoneInformationForYear
Local Time
SetTimeZoneInformation
Time Functions
TIME_ZONE_INFORMATION
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms724421(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 13:19:42