Skip to content
instance method

File::Stat#ctime

() -> ::Time
stat.ctime → time

Returns the change time for stat (that is, the time directory information about the file was changed, not the file itself).

Note that on Windows (NTFS), returns creation time (birth time).

Example
File.stat("testfile").ctime   #=> Wed Apr 09 08:53:14 CDT 2003
See also #chardev? #dev #blocks #dev_major also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0