How to parse milliseconds using Data.Time in Haskell <p>I have a formatted time strings from a log file of the form "08:14:59,012" and I would like to parse them as UTCTime (to be able to make some time difference and comparison operations).</p> <p>I'm unable to find a way to parse the milliseconds. Here's what I have so far</p> <pre><code>import System.Locale (defaultTimeLocale) import Data.Time (UTCTime) import Data.Time.Format (readTime) readHMS :: String -&gt; UTCTime readHMS = readTime defaultTimeLocale "%H:%M:%S" -- ^^ How to parse milis? ""%H:%M:%S,%Q" doesn't work test = readHMS "08:14:59,012" </code></pre> <p>Please suggest a way to parse milliseconds so that the test above contains them.</p>