[Haskell-cafe] Re: programmatic DB interface?

Magnus Therning magnus at therning.org
Fri Feb 5 02:54:39 EST 2010


On 05/02/10 07:04, Johannes Waldmann wrote:
> 
>>        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?

It's very much valid, see http://en.wikipedia.org/wiki/ISO_8601

/M

-- 
Magnus Therning                        (OpenPGP: 0xAB4DFBA4)
magnus@therning.org          Jabber: magnus@therning.org
http://therning.org/magnus         identi.ca|twitter: magthe

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


More information about the Haskell-Cafe mailing list