Skip to content
instance method

File#atime

() -> ::Time
file.atime → time

Returns the last access time (a Time object) for file, or epoch if file has not been accessed.

Example
File.new("testfile").atime   #=> Wed Dec 31 18:00:00 CST 1969
See also .atime .zero? #birthtime .writable_real? also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0