网站首页  词典首页

请输入您要查询的函数:

 

术语 systemtimetotzspecificlocaltime
释义 SystemTimeToTzSpecificLocalTime
语法:
C++
BOOL WINAPI SystemTimeToTzSpecificLocalTime(
__in_opt LPTIME_ZONE_INFORMATION lpTimeZone,
__in LPSYSTEMTIME lpUniversalTime,
__out LPSYSTEMTIME lpLocalTime
);
SystemTimeToTzSpecificLocalTime功能
转换为协调世界时(UTC)时间到指定的时区的相应本地时间。
参数
lpTimeZone [中,可选]
一个 TIME_ZONE_INFORMATION结构,指定利益时区的指针。
如果lpTimeZone是NULL,则函数使用当前活动的时区。
lpUniversalTime [in]
一个 SYSTEMTIME结构,指定时间的指针,在星期三。该函数将这个世界性的时间到指定的时区的相应本地时间。
lpLocalTime [out]
一个SYSTEMTIME结构,接收本地时间的指针。
返回值
如果函数成功,返回值为非零值,函数套SYSTEMTIME结构中的成员所指向的lpLocalTime适当的地方时间值。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
该SystemTimeToTzSpecificLocalTime函数是否夏令时(DST)实际上是为本地时间的系统时间将转换成的帐户。
该SystemTimeToTzSpecificLocalTime函数可以计算本地时间错误地在下列情况下:
时区使用不同的星期一为新老年所抵消。
在星期六的时间要转换和计算的本地时间是在不同年份。
实例
有关示例,请参见检索最后的读写时间。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
GetSystemTime
GetTimeZoneInformation
系统时间
系统时间
时间函数
TIME_ZONE_INFORMATION
TzSpecificLocalTimeToSystemTime
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==SystemTimeToTzSpecificLocalTime Function
Converts a time in Coordinated Universal Time (UTC) to a specified time zone's corresponding local time.
Syntax
C++
BOOL WINAPI SystemTimeToTzSpecificLocalTime(
__in_opt LPTIME_ZONE_INFORMATION lpTimeZone,
__in LPSYSTEMTIME lpUniversalTime,
__out LPSYSTEMTIME lpLocalTime
);
Parameters
lpTimeZone [in, optional]
A pointer to a TIME_ZONE_INFORMATION structure that specifies the time zone of interest.
If lpTimeZone is NULL, the function uses the currently active time zone.
lpUniversalTime [in]
A pointer to a SYSTEMTIME structure that specifies a time, in UTC. The function converts this universal time to the specified time zone's corresponding local time.
lpLocalTime [out]
A pointer to a SYSTEMTIME structure that receives the local time.
Return Value
If the function succeeds, the return value is nonzero, and the function sets the members of the SYSTEMTIME structure pointed to by lpLocalTime to the appropriate local time values.
If the function fails, the return value is zero. To get extended error information, call GetLastError .
Remarks
The SystemTimeToTzSpecificLocalTime function takes into account whether daylight saving time (DST) is in effect for the local time to which the system time is to be converted.
The SystemTimeToTzSpecificLocalTime function may calculate the local time incorrectly under the following conditions:
The time zone uses a different UTC offset for the old and new years.
The UTC time to be converted and the calculated local time are in different years.
Examples
For an example, see Retrieving the Last-Write Time .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
GetSystemTime
GetTimeZoneInformation
System Time
SYSTEMTIME
Time Functions
TIME_ZONE_INFORMATION
TzSpecificLocalTimeToSystemTime
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms724949(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:15:31