&#39;time&#39; is the generally accepted package which exports the Data.Time you mentioned. &#39;DateTime&#39; looks to use &#39;time&#39; to provide an aledgedly simpler API. &#39;old-time&#39; should go away eventually and thus you should not use it for new projects.<br>
<br>You likely want &#39;getCurrentTime&#39; [1].<br><br>Thomas<br><br>[1] <a href="http://hackage.haskell.org/packages/archive/time/1.1.4/doc/html/Data-Time-Clock.html#v%3AgetCurrentTime">http://hackage.haskell.org/packages/archive/time/1.1.4/doc/html/Data-Time-Clock.html#v%3AgetCurrentTime</a><br>
<br><div class="gmail_quote">On Sun, Dec 27, 2009 at 10:42 PM, Brian Denheyer <span dir="ltr">&lt;<a href="mailto:briand@aracnet.com">briand@aracnet.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hi All,<br>
<br>
What&#39;s the best way to get the year/month/day/hour/min/sec of the<br>
current time ?  I&#39;ve become mired in confusion with Time, Data.Time,<br>
DateTime and I think there is even an old-time.<br>
<br>
Might be a couple of calendar libraries in there, not quite sure...<br>
<br>
Thanks,<br>
<br>
Brian<br>
<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</blockquote></div><br>