[Haskell-cafe] Catching up on Time and Directory

Christopher Done chrisdone at googlemail.com
Tue Nov 16 13:00:08 EST 2010


On 16 November 2010 11:30, Jon Fairbairn <jon.fairbairn at cl.cam.ac.uk> wrote:

> I'm probably terribly out of date with this, so I wonder if
> anyone can save me the bother of working out what the
> /preferred/ libraries are for (a) determining the
> last-modified-time of a file or directory and (b) manipulating
> the resulting time datum.
>
> I can find System.Directory.getModificationTime and
> Data.Time.formatTime, but using them together seems unduly
> awkward.
>

Yep, it's still awkward. The annoying thing is these base libraries still
use the old time libraries. Here's me having to use both because of
getModificationTime:

https://github.com/chrisdone/amelie/blob/master/src/Amelie/Import.hs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20101116/0f78fcff/attachment.html


More information about the Haskell-Cafe mailing list