[Haskell-cafe] time of day
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
You likely want 'getCurrentTime' .
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...
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe