 |
FileTimeToSystemTime Add comment W32 Constants Translate this page |
 |
 |
|
The FileTimeToSystemTime function converts a file time to system time format. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL FileTimeToSystemTime(
CONST FILETIME *lpFileTime, // file time to convert
LPSYSTEMTIME lpSystemTime // receives system time
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER FileTimeToSystemTime IN kernel32.dll;
STRING @ lpFileTime,;
STRING @ lpSystemTime
|
 |
 |
 |
| Parameters: |
 |
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.
|
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is nonzero. |
 |
 |
| My comment: |
 |
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. |
 |
 |
| Word Index links for the FileTimeToSystemTime : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-07-24 12:00:00 | | Modified: | 2001-11-26 16:02:38 | Visited in last 7 days: 53 |