Method: File#atime
- Defined in:
- file.c
#atime ⇒ Time
2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 |
# File 'file.c', line 2320
static VALUE
rb_file_atime(VALUE obj)
{
rb_io_t *fptr;
struct stat st;
GetOpenFile(obj, fptr);
if (fstat(fptr->fd, &st) == -1) {
rb_sys_fail_path(fptr->pathv);
}
return stat_atime(&st);
}
|