birthtime(p1)
public
Returns the birth time for the named file.
file_name can be an IO object.
Note that on Windows (NTFS), returns creation time (birth time).
File.birthtime("testfile")
static VALUE
rb_file_s_birthtime(VALUE klass, VALUE fname)
{
struct stat st;
if (rb_stat(fname, &st) < 0) {
FilePathValue(fname);
rb_sys_fail_path(fname);
}
return stat_birthtime(&st);
}