# FileTime 脚本函数

FileTime 函数以 UTC 格式返回指定文件上次修改的时间戳。如果未指定文件，函数将返回当前读取的表文件的最后修改的 UTC 时间戳。

语法：

FileTime([ filename ])

参数：

参数

| 参数 | 描述 |
| --- | --- |
| filename | 文件名（如有必要）包括路径，作为文件夹或 Web 文件的数据连接。<br><br>示例： 'lib://Table Files/' |

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

#### 示例和结果：

脚本

| 示例 | 结果 |
| --- | --- |
| `LOAD *, FileTime(<br>) as X from abc.txt;` | 将以整数形式在每个记录读取的 X 字段中返回文件 (abc.txt) 上一次修改的时间戳。 |
| `FileTime( 'xyz.xls' )` | 将返回文件 xyz.xls 上一次修改的时间戳。 |