Skip to content

Get_File_Mod_Time

Include: Use System\FileSystem.pkg

See Also: File_Exist

Purpose

Returns the last modified date and time for a file or directory.

Syntax

Get_File_Mod_Time [FILE] {Path} to {DateTimeVariable}
Get_File_Mod_Time [FILE] {Path} to {DateVariable} {Hour} {Minute} {Second} {Millisecond}

Arguments

FILE : Optional file driver. The FILE driver is optional; when omitted, file operations use FILE.

{Path} : File or directory path.

{DateTimeVariable} : A DateTime variable that receives the complete timestamp.

{DateVariable} {Hour} {Minute} {Second} {Millisecond} : Variables that receive the date and time parts.

Example

DateTime dtFile
Date dFile
Integer iHour iMinute iSecond iMillisecond

Get_File_Mod_Time FILE "stamp.lock" to dtFile
Get_File_Mod_Time "stamp.lock" to dFile iHour iMinute iSecond iMillisecond
Get_File_Mod_Time FILE "stamp.lock.dir" to dtFile