Obtains the file date for an existing file
Usage:
sysFileDate (object me, string filePath, integer dateType)
Parameters:
filePath (string) - a string specifying the file path to an existing file
dateType (integer) - the date types possible are:
- Create time
- Access time
- Modified time
Returns:
(list of integers) - a list with 6 integers. The meanings of each positions are:
- Year
- Month
- Day
- Hour
- Minute
- Second
Example:
xtRose = xtra("Rosetta").new( )
nLst_ModDate = xtRose.sysFileDate( "c:\program files\macromedia\Director 8.5\Director.exe", 3 )
Notes:
Not all file systems can record creation and last access time and not all file systems record them in the same manner. For example, on Windows NT FAT, create time has a resolution of 10 milliseconds, write time has a resolution of 2 seconds, and access time has a resolution of 1 day (really, the access date). On NTFS, access time has a resolution of 1 hour. Furthermore, FAT records times on disk in local time. However, NTFS records times on disk in UTC.