haskellhaskell-stacktemplate-haskellhaskell-platformhaskell-pipes

How to get the current UTC 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.


Solution

  • You can use getCurrentTime from Data.Time.Clock.