网站首页  词典首页

请输入您要查询的函数:

 

术语 filetimetodosdatetime
释义 FileTimeToDosDateTime
语法:
C++
BOOL WINAPI FileTimeToDosDateTime(
__in const FILETIME *lpFileTime,
__out LPWORD lpFatDate,
__out LPWORD lpFatTime
);
FileTimeToDosDateTime功能
文件时间转换到MS - DOS日期和时间值。
参数
lpFileTime [in]
一个FILETIME结构,包含该文件的时间转换为MS - DOS的日期和时间格式的指针。
lpFatDate [out]
对变量的指针收到的MS - DOS的日期。该日期与以下格式包装的价值。
BitsDescription
0 -每月(1-31 4Day)
5 8Month(1 =月1日,2 = 2等)
9从1980年偏移15Year(1980年加入获得实际年)
lpFatTime [out]
对变量的指针收到的MS - DOS的时间。时间是与以下格式包装的价值。
BitsDescription
0 -除以2 4Second
5 - 10分钟(0-59)
11 15Hour 24小时制(0-23)
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
在MS - DOS的日期格式,能够代表1980年1月1日和2107年12月31日之间只有日期;这种转换失败如果输入文件的时间超出了此范围。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
DosDateTimeToFileTime
FileTimeToSystemTime
SystemTimeToFileTime
时间函数
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==FileTimeToDosDateTime Function
Converts a file time to MS-DOS date and time values.
Syntax
C++
BOOL WINAPI FileTimeToDosDateTime(
__in const FILETIME *lpFileTime,
__out LPWORD lpFatDate,
__out LPWORD lpFatTime
);
Parameters
lpFileTime [in]
A pointer to a FILETIME structure containing the file time to convert to MS-DOS date and time format.
lpFatDate [out]
A pointer to a variable to receive the MS-DOS date. The date is a packed value with the following format.
BitsDescription
0–4Day of the month (1–31)
5–8Month (1 = January, 2 = February, etc.)
9-15Year offset from 1980 (add 1980 to get actual year)

lpFatTime [out]
A pointer to a variable to receive the MS-DOS time. The time is a packed value with the following format.
BitsDescription
0–4Second divided by 2
5–10Minute (0–59)
11–15Hour (0–23 on a 24-hour clock)

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
The MS-DOS date format can represent only dates between 1/1/1980 and 12/31/2107; this conversion fails if the input file time is outside this range.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
DosDateTimeToFileTime
FileTimeToSystemTime
SystemTimeToFileTime
Time Functions
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms724274(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:22:44