FileSetLastModified()

edit

For the given file, set the last modification date

FileSetLastModified( file=any, date=date );

Returns: void

Argument Description
file
any, required
edit

file path

Alias: filePath, source, path

date
date, required
edit

last modified date

Examples

edit
filesetlastmodified(expandPath("./testcase.txt"),#dateAdd("d", 2, now())#);
writeDump(getfileinfo(expandPath("./testcase.txt")).lastmodified);

See also