Function accessed [src]

Returns the last time the file was accessed in nanoseconds since UTC 1970-01-01

Prototype

pub fn accessed(self: Self) i128

Parameters

self: Self

Source

pub fn accessed(self: Self) i128 { const atime = self.stat.atime(); return @as(i128, atime.sec) * std.time.ns_per_s + atime.nsec; }