ctime()
public
Returns the change time for file (that is, the time directory
information about the file was changed, not the file itself).
File.new("testfile").ctime
Show source
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);
}