var file = File(__FILE__) say file.stat.mtime # seconds since the epoch # keep atime unchanged # set mtime to current time file.utime(file.stat.atime, Time.now)
Last updated 1 year ago