Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,9 @@
|
|||
import System.Posix.Files
|
||||
import System.Posix.Time
|
||||
|
||||
do status <- getFileStatus filename
|
||||
let atime = accessTime status
|
||||
mtime = modificationTime status -- seconds since the epoch
|
||||
curTime <- epochTime
|
||||
setFileTimes filename atime curTime -- keep atime unchanged
|
||||
-- set mtime to current time
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
import System.Directory
|
||||
import System.Time
|
||||
|
||||
do ct <- getModificationTime filename
|
||||
cal <- toCalendarTime ct
|
||||
putStrLn (calendarTimeToString cal)
|
||||
Loading…
Add table
Add a link
Reference in a new issue