method

atime

v1_9_1_378 - Show latest stable - Class: File
atime()
public

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

File.new("testfile").atime   #=> Wed Dec 31 18:00:00 CST 1969