Set the file date for an existing file
Usage:
sysFileSetDate (object me, string filePath, integer dateType, integer year, integer month, integer day, integer hour, integer minute, integer second)
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
year (integer) - the four digit year. The year must be greater than 1601
month (integer) the month in the range of 1 to 12
day (integer) - the day within the month
hour (integer) - the hour in the range of 0 to 23
minute (integer) - the minute in the range of 0 to 59
second (integer) - the second in the range of 0 to 59
Returns:
(integer) - The success code
Example:
xtRose = xtra("Rosetta").new( )
nLst_ModDate = xtRose.sysFileSetDate( "C:\caluTest\caluPPT.ppt", 1, 2000, 1, 1, 09, 08, 01 )
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.