Skip to main content

mtime_of

Function mtime_of 

Source
pub fn mtime_of(meta: &Metadata) -> i64
Expand description

The modification time of meta, in nanoseconds since the epoch.

Nanoseconds rather than seconds, and the difference matters: at one-second resolution a file rewritten within the same second at the same length would be taken for unchanged, and on a fast machine that is not a rare event but an ordinary one. At nanosecond resolution the window closes to whatever the filesystem’s timestamp granularity actually is.