End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
File::Stat#mtime
stat.mtime → aTime
file.c
View on GitHub ↗
static VALUE
rb_stat_mtime(VALUE self)
{
return stat_mtime(get_stat(self));
}
Returns the modification time of stat.
Example
File.stat("testfile").mtime #=> Wed Apr 09 08:53:14 CDT 2003