[Haskell-cafe] Please help : Data.Time.Format parseTime

Dmitri O.Kondratiev dokondr at gmail.com
Tue Jun 14 22:33:56 CEST 2011


I am trying to convert data string to time:

import Data.Time
import Data.Time.Format
import Locale

ds = "10/11/2009 7:04:28 PM"
t = parseTime defaultTimeLocale "%D %H:%M:%S  %p" ds :: Maybe UTCTime

and get "Nothing".
What is wrong?

Thanks !
Dmitri.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110615/80961f9e/attachment.htm>


More information about the Haskell-Cafe mailing list