method

atime

v2_6_3 - Show latest stable - Class: File
atime(p1)
public

Returns the last access time for the named file as a Time object.

file_name can be an IO object.

File.atime("testfile")   #=> Wed Apr 09 08:51:48 CDT 2003