1

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.

Chris Stryczynski
  • 30,145
  • 48
  • 175
  • 286
arjun a
  • 151
  • 7

2 Answers2

4

You can use getCurrentTime from Data.Time.Clock.

Emily
  • 1,030
  • 1
  • 12
  • 20
0

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 (i.e, the functionality of "time.h", adapted to the Haskell environment). It follows RFC 1129 in its use of Coordinated Universal Time (UTC).

Madhuchhanda Mandal
  • 917
  • 1
  • 7
  • 20