birthtime()
public
Returns the birth time for file.
Note that on Windows (NTFS), returns creation time (birth time).
File.new("testfile").birthtime
static VALUE
rb_file_birthtime(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_birthtime(&st);
}