术语 | filetimetolocalfiletime |
释义 | FileTimeToLocalFileTime 语法: C++ BOOL WINAPI FileTimeToLocalFileTime( __in const FILETIME *lpFileTime, __out LPFILETIME lpLocalFileTime ); FileTimeToLocalFileTime函数 时间转换的文件到本地文件的时间。 参数 lpFileTime [in] 一个 FILETIME结构包含星期六的文件时间指针被转换成一个本地文件的时间。 lpLocalFileTime [out] 一个FILETIME结构的指针转换接收本地文件的时间。这个参数不能作为lpFileTime参数相同。 返回值 如果函数成功,返回值为非零。 如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。 备注 FileTimeToLocalFileTime使用的时区和夏令时的当前设置。因此,如果是夏令时,此函数将夏令时间考虑,即使要转换的时间是在标准时间。您可以使用替代的功能下列顺序。 FileTimeToSystemTime SystemTimeToTzSpecificLocalTime SystemTimeToFileTime 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWinbase.h(头文件:winuser.h) LibraryKernel32.lib DLLKernel32.dll 参见 文件时报 FILETIME LocalFileTimeToFileTime 时间函数 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年8月27日 ==英文原文==FileTimeToLocalFileTime Function Converts a file time to a local file time. Syntax C++ BOOL WINAPI FileTimeToLocalFileTime( __in const FILETIME *lpFileTime, __out LPFILETIME lpLocalFileTime ); Parameters lpFileTime [in] A pointer to a FILETIME structure containing the UTC-based file time to be converted into a local file time. lpLocalFileTime [out] A pointer to a FILETIME structure to receive the converted local file time. This parameter cannot be the same as the lpFileTime parameter. Return Value If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended error information, call GetLastError . Remarks FileTimeToLocalFileTime uses the current settings for the time zone and daylight saving time. Therefore, if it is daylight saving time, this function will take daylight saving time into account, even if the time you are converting is in standard time. You can use the following sequence of functions as an alternative. FileTimeToSystemTime SystemTimeToTzSpecificLocalTime SystemTimeToFileTime Requirements Minimum supported clientWindows 2000 Professional Minimum supported serverWindows 2000 Server HeaderWinbase.h (include Windows.h) LibraryKernel32.lib DLLKernel32.dll See Also File Times FILETIME LocalFileTimeToFileTime Time Functions Send comments about this topic to Microsoft Build date: 8/27/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/ms724277(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。