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