简体   繁体   中英

what is the way to get system time in Haskell?

i want to use system time in my code for having the record of time when the data is captured from the user interface. how to get system time using Haskell .

You can use getCurrentTime from Data.Time.Clock .

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

Go through the above Doc.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM