Ruby: Change file access/modification time for a file

Pretty basic, but took me one hour to find. To set the access/modification time for a file in Ruby do not try to use

FileUtils.touch

(as Unix) because it only sets to current DT. Use

File.utime(atime,utime,filename,...)