[Haskell-cafe] Help parsing dates and times

Carl Witty cwitty at newtonlabs.com
Tue Oct 16 15:39:27 EDT 2007


On Tue, 2007-10-16 at 09:25 -0700, Justin Bailey wrote:
> On 10/16/07, Bjorn Bringert <bringert at cs.chalmers.se> wrote:
>         
>         Should we just add XX:XX as an alternative time zone offset
>         format
>         accepted by %z and %Z? Is this a standard format?

Yes, this is standard; see below.

> I'm not sure, but I am getting this date from Google in their XML
> feeds representing calendar data. The specific element is "gd:when",
> documented here: 
> 
> http://code.google.com/apis/gdata/elements.html#gdWhen

That refers to XML Schema; the dateTime type in XML Schema is standardized here:
http://www.w3.org/TR/xmlschema-2/#dateTime
(and time zone offsets are required to have a colon in this format).

Carl Witty




More information about the Haskell-Cafe mailing list