Method: File#ctime
- Defined in:
- file.c
#ctime ⇒ Time
2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 |
# File 'file.c', line 2423
static VALUE
rb_file_ctime(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_ctime(&st);
}
|