网站首页  词典首页

请输入您要查询的函数:

 

术语 tzspecificlocaltimetosystemtime
释义 TzSpecificLocalTimeToSystemTime
语法:
C++
BOOL WINAPI TzSpecificLocalTimeToSystemTime(
__in_opt LPTIME_ZONE_INFORMATION lpTimeZoneInformation,
__in LPSYSTEMTIME lpLocalTime,
__out LPSYSTEMTIME lpUniversalTime
);
TzSpecificLocalTimeToSystemTime功能
一个本地时间转换为协调世界时(UTC)时间。
参数
lpTimeZoneInformation [中,可选]
一个 TIME_ZONE_INFORMATION结构指定为lpLocalTime规定的时间时区的指针。
如果lpTimeZoneInformation为NULL,则函数使用当前活动的时区。
lpLocalTime [in]
一个 SYSTEMTIME结构,指定本地时间的指针。函数转换成相应的时间,UTC时间。
lpUniversalTime [out]
一个 SYSTEMTIME结构,它接收UTC时间的指针。
返回值
如果函数成功,返回值为非零值,函数套SYSTEMTIME结构中的成员所指向的lpUniversalTime到适当的值。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
TzSpecificLocalTimeToSystemTime考虑是否夏令时(DST)实际上是在本地时间进行转换。
要求:
最低支持client-Windows XP
最低支持serverWindows服务器2003
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
GetSystemTime
GetTimeZoneInformation
当地时间
系统时间
SystemTimeToTzSpecificLocalTime
时间函数
TIME_ZONE_INFORMATION
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==TzSpecificLocalTimeToSystemTime Function
Converts a local time to a time in Coordinated Universal Time (UTC).
Syntax
C++
BOOL WINAPI TzSpecificLocalTimeToSystemTime(
__in_opt LPTIME_ZONE_INFORMATION lpTimeZoneInformation,
__in LPSYSTEMTIME lpLocalTime,
__out LPSYSTEMTIME lpUniversalTime
);
Parameters
lpTimeZoneInformation [in, optional]
A pointer to a TIME_ZONE_INFORMATION structure that specifies the time zone for the time specified in lpLocalTime.
If lpTimeZoneInformation is NULL, the function uses the currently active time zone.
lpLocalTime [in]
A pointer to a SYSTEMTIME structure that specifies a local time. The function converts this time to the corresponding UTC time.
lpUniversalTime [out]
A pointer to a SYSTEMTIME structure that receives the UTC 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 lpUniversalTime to the appropriate values.
If the function fails, the return value is zero. To get extended error information, call GetLastError .
Remarks
TzSpecificLocalTimeToSystemTime takes into account whether daylight saving time (DST) is in effect for the local time to be converted.
Requirements
Minimum supported clientWindows XP
Minimum supported serverWindows Server 2003
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
GetSystemTime
GetTimeZoneInformation
Local Time
SYSTEMTIME
SystemTimeToTzSpecificLocalTime
Time Functions
TIME_ZONE_INFORMATION
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms725485(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:18:58