Home > Language Reference > File Functions > FileTime$

FileTime$

The FileTime$ function returns the file modification time of the specified file.

Usage

Used to know when a file has been last updated.

Syntax

var$=FileTime$(<filename>)

Parameters

<filename>, string, name of the file. 
 

Return value

var$, string. It contains the modification time (format hh:mm:ss). If <filename> is empty or the file does not exist, an empty string is returned. 

See also

FileDate$
FileSize
FileVersion$
FileAttr$

Example

a$=FileTime$("c:\wttest\myfile.txt")