Method System.utime()
- Method utime
void
utime(string
path
,int
atime
,int
mtime
,void
|int
symlink
)- Description
Set the last access time and last modification time for the path
path
toatime
andmtime
repectively. They are specified as unix timestamps with 1 second resolution.If
symlink
is set andpath
refers to a symlink, then the timestamps for the symlink are set. Symlinks are dereferenced otherwise.- Note
Throws errors on failure.
This function is not available on all platforms. On some platforms the
symlink
flag isn't supported. In that case, the function does nothing ifpath
is a symlink.- See also
System.set_file_atime
,System.set_file_mtime