how to use POSIX function utime?

David Roundy droundy@abridgegame.org
Fri, 28 Mar 2003 09:30:56 -0500


On Fri, Mar 28, 2003 at 01:39:13AM +0000, Glynn Clements wrote:
> 
> AFAICT, the correct interface is Posix.setFileTimes:
> 
> 	setFileTimes :: FilePath -> EpochTime -> EpochTime -> IO ()
> 	setFileTimes name atime mtime = do
> 		...
> 
> EpochTime is the Haskell equivalent of C's time_t (integral number of
> seconds since the epoch).

Thanks for the pointer! It seems I had totally missed the documentation on
hslibs, and was thus looking in entirely the wrong place.  (Feeling
somewhat foolish...)
-- 
David Roundy
http://civet.berkeley.edu/droundy/