在Haskell中获取系统时间的方法是什么?

what is the way to get system time in Haskell?

我想在我的代码中使用系统时间来记录从用户界面捕获数据时的时间。如何使用Haskell[=14=获取系统时间].

您可以使用 Data.Time.Clock 中的 getCurrentTime

http://hackage.haskell.org/package/old-time-1.1.0.3/docs/System-Time.html

阅读上面的文档。

System.Time provides functionality for clock times, including timezone information (i.e, the functionality of "time.h", adapted to the Haskell environment). It follows RFC 1129 in its use of Coordinated Universal Time (UTC).