atime(p1)
public
Returns the last access time for the named file as a Time object).
File.atime("testfile")
Show source
static VALUE
rb_file_s_atime(VALUE klass, VALUE fname)
{
struct stat st;
if (rb_stat(fname, &st) < 0) {
FilePathValue(fname);
rb_sys_fail(RSTRING_PTR(fname));
}
return stat_atime(&st);
}