ZVON > References > Haskell reference |
Intro / Search / ZVON |
| Indexes | Syntax | Prelude | Ratio | Complex | Numeric | Ix | Array | List | Maybe | Char | Monad | IO | >> Directory << | System | Time | Locale | CPUTime | Random |
Module: | Directory |
---|---|
Function: | getModificationTime |
Type: | FilePath -> IO ClockTime |
Description: | returns the clock time at which the file/directory was last modified |
Related: |
Program source: import IO import Directory main = do x <- getModificationTime "/tmp/foo.txt" print x hdl <- openFile "/tmp/foo.txt" AppendMode hPutStr hdl "Hello" hClose hdl y <- getModificationTime "/tmp/foo.txt" print y
Output: Tue Apr 16 08:34:03 GMT 2002
Output: Tue Apr 16 08:37:17 GMT 2002