utimens


Description:

[ Version ( since = "1.0.77" ) ]
public bool utimens (string path, int64 atsecs, int64 atnsecs, int64 mtsecs, int64 mtnsecs) throws Error

set timestamp of a file with nanosecond precision

This command sets the timestamps of a file with nanosecond precision.

"atsecs, atnsecs" are the last access time (atime) in secs and nanoseconds from the epoch.

"mtsecs, mtnsecs" are the last modification time (mtime) in secs and nanoseconds from the epoch.

If the *nsecs field contains the special value @-1 then the corresponding timestamp is set to the current time. (The *secs field is ignored in this case).

If the *nsecs field contains the special value @-2 then the corresponding timestamp is left unchanged. (The *secs field is ignored in this case ).

Parameters:

this

A GuestfsSession object

Returns:

true on success, false on error