pub fn setTimestampsNow(file: File, io: Io) SetTimestampsError!void 457
458
459
460
461
462pub fn setTimestampsNow(file: File, io: Io) SetTimestampsError!void {
return io.vtable.fileSetTimestamps(io.userdata, file, .{
.access_timestamp = .now,
.modify_timestamp = .now,
});
}
Sets the accessed and modification timestamps of
fileto the current wall clock time.The granularity that ultimately is stored depends on the combination of operating system and file system.