Group: Time - Library: kernel32
Retrieving list of files on the FTP directory
Downloading files from the FTP server using InternetReadFile
A procedure for setting file times
HOWTO: Use the Win32 API to Access File Dates and Times
Building a tree of subdirectories for a given path using FindFile functions
How to retrieve information about a cache entry (Internet Explorer)
Custom FTP Class for Visual FoxPro application
How to delete IE cookies, clear IE history and delete files in Temporary Internet Files directory
How to find when the application started
BOOL FileTimeToSystemTime(
CONST FILETIME *lpFileTime, // file time to convert
LPSYSTEMTIME lpSystemTime // receives system time
);
DECLARE INTEGER FileTimeToSystemTime IN kernel32.dll;
STRING @ lpFileTime,;
STRING @ lpSystemTime
lpFileTime [in] Pointer to a FILETIME structure containing the file time to convert to system date and time format.
lpSystemTime [out] Pointer to a SYSTEMTIME structure to receive the converted file time.
If the function succeeds, the return value is nonzero.
FileTime structure contains two DWORDs -- Lo and Hi time. This function converts them into several words within the SYSTEMTIME structure: Year, Month, DayOfWeek, Day, Hour, Minute etc.
Not all file systems can record creation and last access time and not all file systems record them in the same manner. On some FTP restoring file times you may have the last write time only, and creation time, and last access time values empty.