End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Pathname#utime
utime(p1, p2)
ext/pathname/pathname.c
View on GitHub ↗
static VALUE
path_utime(VALUE self, VALUE atime, VALUE mtime)
{
return rb_funcall(rb_cFile, id_utime, 3, atime, mtime, get_strpath(self));
}
Update the access and modification times of the file.
See File.utime.
See also
#untaint
#world_readable?
#unlink
#world_writable?
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0