FileTimeCode

Returns a machine readable/computable code for a file time.

Syntax:

FileTimeCode(filename)

Parameters:

(s) filename file name to get the time code from.

Returns:

(i) file time code.

 

Use this function to return an 32-bit integer representing the current file time stamp. This number may be compared to other file times to compare ages of files. It is basically the DOS 16-bit date and the DOS 16-bit time in a 32-bit integer. This function returns a valid, comparable time through the year 2044.

This function supports extended-length path names.

Example:


a=FileTimeCode("C:\AUTOEXEC.BAT")
b=FileTimeCode("C:\CONFIG.SYS")
If a == b
   ans="Same Time"
Else
   If a > b
      ans = "AutoExec newer than Config"
   Else
      ans = "AutoExec older than Config"
   EndIf
EndIf
Message("Comparing file times", ans)
See Also:

FileTimeGet, FileTimeGetEx, FileYmdHms