[Haskell-cafe] Re: programmatic DB interface?

Johannes Waldmann waldmann at imn.htwk-leipzig.de
Fri Feb 5 02:04:51 EST 2010


>        Johannes> Data.Time.LocalTime.LocalTime.LocalTime: Cannot parse
>        Johannes> using default format string "%Y-%m-%dT%T%Q"

this actually comes from the default format string
that is defined in old-locale:System.Locale?

iso8601DateFormat :: Maybe String -> String
iso8601DateFormat mTimeFmt =
    "%Y-%m-%d" ++ case mTimeFmt of
             Nothing  -> ""
             Just fmt -> 'T' : fmt

and this can't be right - the 'T' is invalid?

J.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20100205/e37967ca/signature.bin


More information about the Haskell-Cafe mailing list