End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Pathname#mtime
pathname.mtime → time
ext/pathname/pathname.c
View on GitHub ↗
static VALUE
path_mtime(VALUE self)
{
return rb_funcall(rb_cFile, id_mtime, 1, get_strpath(self));
}
Returns the last modified time of the file.
See File.mtime.