如何獲取ftp目錄下的檔案的修改時間,現在用 FtpFindFirstFile函式貌似只能獲取到分的修改時間,有沒辦法獲取到秒的修改時間,哪位大俠知道呢?
uj5u.com熱心網友回復:
global type systemtime from structure
integer wYear
integer wMonth
integer wDayOfWeek
integer wDay
integer wHour
integer wMinute
integer wSecond
integer wMilliseconds
end type
global type win32_find_dataa from structure
unsignedlong dwfileattributes
filetime ftcreationtime
filetime ftlastaccesstime
filetime ftlastwritetime
unsignedlong nfilesizehigh
unsignedlong nfilesizelow
unsignedlong dwreserved0
unsignedlong dwreserved1
character cfilename[260]
character calternatefilename[14]
end type
win32_find_dataa lpFindFileData
systemtime sst
FileTimeToSystemTime(lpFindFileData.ftlastwritetime,sst)
這樣一來sst中不是有秒(wSecond)也有毫秒(wMilliseconds)嗎
uj5u.com熱心網友回復:
首先謝謝您的回復但
win32_find_dataa lpFindFileData
systemtime sst
FileTimeToSystemTime(lpFindFileData.ftlastwritetime,sst)
這個我也是這么用的,但wSecond和wMilliseconds的值都是0,不知道為什么?
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/75017.html
標籤:API 調用
上一篇:pb9.0
