# 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/' |

[](https://help.qlik.com/en-US/cloud-services/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. |