getModificationTime and directory-1.2

Simon Hengel sol at typeful.net
Wed Sep 12 08:28:00 CEST 2012


On Wed, Sep 12, 2012 at 07:04:18AM +0100, Ganesh Sittampalam wrote:
> The replacement is something like:
> 
>   t <- getModificationTime path
>   return $! fromInteger $ floor
>          $ t `diffUTCTime` UTCTime (fromGregorian 1970 1 1) 0

Not sure if it makes any difference, but I use:

    floor . utcTimeToPOSIXSeconds <$> getModificationTime path

Cheers,
Simon



More information about the Libraries mailing list