class method
File.utime
(::Time | ::Numeric atime, ::Time | ::Numeric mtime, *::string | ::_ToPath file_name) -> ::Integer
File.utime(atime, mtime, file_name, ...) → integer
file.c
View on GitHub ↗
static VALUE
rb_file_s_utime(int argc, VALUE *argv, VALUE _)
{
return utime_internal_i(argc, argv, FALSE);
}
Sets the access and modification times of each named file to the first two arguments. If a file is a symlink, this method acts upon its referent rather than the link itself; for the inverse behavior see File.lutime. Returns the number of file names in the argument list.