Previous - sysFileSetAttribute Section Home - File System Next - sysFileSetDate


sysFileDate ( )

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:

  1. Create time
  2. Access time
  3. Modified time

Returns:

(list of integers) - a list with 6 integers. The meanings of each positions are:

  1. Year
  2. Month
  3. Day
  4. Hour
  5. Minute
  6. 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.


Previous - sysFileSetAttribute Section Home - File System Next - sysFileSetDate