How to handle date / time difference in haskell

0

I'm having trouble calculating the difference between two UTCTime instances in haskell. I need to calculate the days difference, plus the difference in days, hours and minutes.

I'm getting the start time with the code:

now <- getCurrentTime

An attempted possibility is:

let diff = diffUTCTime now other

By documentation, the above function returns an object of type "NominalDiffTime". But I'm having trouble handling this object

    
asked by anonymous 02.10.2018 / 00:46

0 answers