# FileTime - script function

The FileTime function returns a timestamp in UTC format of the last modification of a specified file. If a file is not specified, the function returns a timestamp in UTC of the last modification of the currently read table file.

Syntax:

FileTime([ filename ])

Arguments:

Arguments

| Argument | Description |
| --- | --- |
| filename | The name of a file, if necessary including path, as a folder or web file data connection<br><br>Example: 'lib://Table Files/'<br><br>In legacy scripting mode, the following path formats are also supported:<br><br><ul> <li> <p> absolute </p> <p><span><span>Example: </span></span><span>c:\data\</span> </p> </li> <li> <p>relative to the <span>Qlik Sense</span> app working directory.</p> <p><span><span>Example: </span></span><span>data\</span> </p> </li> <li> <p>URL address (<span>HTTP</span>  or <span>FTP</span>), pointing to a location on the Internet or an intranet. </p> <p><span><span>Example: </span></span><span>http://www.qlik.com</span> </p> </li> </ul> |

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/FileFunctions/FileTime.htm)

#### Examples and results:

Script examples

| Example | Result |
| --- | --- |
| `LOAD *, FileTime(<br>) as X from abc.txt;` | Will return the timestamp of the last modification of the file (abc.txt) in<br>field X in each record read. |
| `FileTime( 'xyz.xls' )` | Will return the timestamp of the last modification<br>of the file xyz.xls. |