Returns the time in which the file was modified for the last time.
1 file.lastModified
<file.lastModified>
<file /> !
</file.lastModified>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Efile | file |
Returns | |
---|---|
Type | Description |
Integer | Time in Unix format of the modification of the file. |
Example
Shows in readable format the last date in which a file was modified.
Copy
<xsql-script name='file_lastModified_sample1'> <body> <set name='m_srcfile'> <string>mydeister.txt</string> </set> <println> <date.timestamp> <file.lastModified> <file name='#m_srcfile'/> </file.lastModified> </date.timestamp> </println> </body> </xsql-script>