Method: File#ctime
- Defined in:
- file.c
#ctime ⇒ Time
2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 |
# File 'file.c', line 2200
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);
}
|