GetFileLastModification |
Files | |
Aptilis 1 |
GetFileLastModification(FileName)
GetFileLastModification returns the date at which the file you specified was last written to.
The value returned is the number of seconds elapsed since January 1, 1970.
Such functions as
fillTimeArray and
fillLocalTimeArray allow
you to transform this value into more explicit values for days,
months and years.
Return Value:
The date of the last modification if everything was OK.
-1 in case of error and the _errno variable contains more details about the error.
Example:
f = "c:\\windows\\tjmail.exe" $ t = GetFilelastmodification(f$) fillLocalTimeArray(time[], t) print(int(time[3])$, "/", int(time[4]+1)$, "/", int(time[5])$, "\n") print(int(time[2])$, ":", int(time[1])$, ":", int(time[0])$)Result:
9/12/1996 11:13:26 |
See also:
getFileDate,
fillLocalTimeArray.