Using Win32 functions in Visual FoxPro Image Gallery
Time
..msdn
CompareFileTime
FileTimeToLocalFileTime
FileTimeToSystemTime
GetFileTime
GetLocalTime
GetSystemTime
GetSystemTimeAdjustment
GetSystemTimeAsFileTime
GetTickCount
GetTimeZoneInformation
LocalFileTimeToFileTime
QueryPerformanceCounter
QueryPerformanceFrequency
SetFileTime
SetTimeZoneInformation
SystemTimeToFileTime
Code examples:
A procedure for setting file times
Building a tree of subdirectories for a given path using FindFile functions
Custom FTP Class for Visual FoxPro application
Downloading files from the FTP server using InternetReadFile
How to delete IE cookies, clear IE history and delete files in Temporary Internet Files directory
How to find when the application started
How to retrieve information about a cache entry (Internet Explorer)
HOWTO: Use the Win32 API to Access File Dates and Times
Retrieving list of files on the FTP directory
FileTimeToSystemTime
    Add comment     W32 Constants      Translate this page
The FileTimeToSystemTime function converts a file time to system time format.
Code examples:
Custom FTP Class for Visual FoxPro application
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 find when the application started
Downloading files from the FTP server using InternetReadFile
A procedure for setting file times
Retrieving list of files on the FTP directory
How to delete IE cookies, clear IE history and delete files in Temporary Internet Files directory
How to retrieve information about a cache entry (Internet Explorer)
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:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-07-24 12:00:00
Modified: 2001-11-26 16:02:38
Visited in last 7 days: 118
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.198.2.110)
12 sec.Function: 'GetMenuItemID'
Function group: 'Menu'
24 sec.Function: 'SetDefaultPrinter'
Function group: 'Printing and Print Spooler'
35 sec.Example: 'How to change display settings: screen resolution, screen refresh rate'
48 sec.All Functions
1 min.Function: 'getnameinfo'
Function group: 'Windows Sockets 2 (Winsock)'
1.18 min.
Function group: 'Security'
1.4 min.Function: 'GetVolumeInformation'
Function group: 'File System'
1.55 min.
1.75 min.All Functions
1.95 min.Links
Google
Advertise here!