[Haskell-cafe] time of day

Thomas DuBuisson thomas.dubuisson at gmail.com
Mon Dec 28 01:57:19 EST 2009

'time' is the generally accepted package which exports the Data.Time you
mentioned. 'DateTime' looks to use 'time' to provide an aledgedly simpler
API. 'old-time' should go away eventually and thus you should not use it for
new projects.

You likely want 'getCurrentTime' [1].



On Sun, Dec 27, 2009 at 10:42 PM, Brian Denheyer <briand at aracnet.com> wrote:

> Hi All,
> What's the best way to get the year/month/day/hour/min/sec of the
> current time ?  I've become mired in confusion with Time, Data.Time,
> DateTime and I think there is even an old-time.
> Might be a couple of calendar libraries in there, not quite sure...
> Thanks,
> Brian
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20091228/b7a7ec96/attachment.html

More information about the Haskell-Cafe mailing list