From: WATANABE Hirofumi Date: 2002-12-18T14:11:30+09:00 Subject: Re: How to 'touch' a file to a time other than now? Phlip writes: > Are there more primitive things I can do to get in 'touch'? % ri File.utime ------------------------------------------------------------ File::utime File.utime( anAccessTime, aModTime [, fileName]+> ) -> aFixnum ------------------------------------------------------------------------ Changes the access and modification times on a number of files. The times must be instances of class Time or integers representing the number of seconds since epoch. Returns the number of files processed. Not available on all platforms. File.utime(0, 0, "testfile") #=> 1 File.mtime("testfile") #=> Wed Dec 31 18:00:00 CST 1969 File.utime(0, Time.now, "testfile") #=> 1 File.mtime("testfile") #=> Sun Mar 04 23:28:25 CST 2001 -- eban