
14 May
2015
14 May
'15
3:20 a.m.
Hi All, I'm trying out the date time conversions in Haskell. How do I convert a keyboard input (IO String) to UTCTime? This is how I'm doing (probably there's a better way), convDay x = read (x ++ " 00:00:00") :: UTCTime Another thing, how do I convert getCurrentTime (IO UTCTime) to UTCTime in order to get the time difference between the keyboard input date and today? -- Regards, Dananji Liyanage