[Top]
System
|
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 to atime and mtime repectively. They are specified
as unix timestamps with 1 second resolution.
If symlink is set and path 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 if path is a symlink.
- See also
-
System.set_file_atime , System.set_file_mtime
|