Re: [Haskell-cafe] Help parsing dates and times

2007-10-16 Thread Thomas Hartman
Re: [Haskell-cafe] Help parsing dates and times jgbailey: I am trying to parse various date and time formats using the parseTime function found in (GHC 6.6.1) Data.Time.Format. The one that is giving me trouble looks like this: 2008-06-26T11:00:00.000-07:00

Re: [Haskell-cafe] Help parsing dates and times

2007-10-16 Thread Bjorn Bringert
On Oct 16, 2007, at 2:25 , Don Stewart wrote: jgbailey: I am trying to parse various date and time formats using the parseTime function found in (GHC 6.6.1) Data.Time.Format. The one that is giving me trouble looks like this: 2008-06-26T11:00:00.000-07:00 Specifically,

Re: [Haskell-cafe] Help parsing dates and times

2007-10-16 Thread Justin Bailey
On 10/16/07, Bjorn Bringert [EMAIL PROTECTED] wrote: Hmm, perhaps I should clarify this: parsedate and time-1.1.1 (which comes with GHC 6.6.1) have different APIs. parsedate produces CalendarTimes, and the code in time-1.1.1 produces the new time and date data types. So I guess parsedate

Re: [Haskell-cafe] Help parsing dates and times

2007-10-16 Thread Bjorn Bringert
On Oct 16, 2007, at 17:54 , Justin Bailey wrote: On 10/16/07, Bjorn Bringert [EMAIL PROTECTED] wrote: Hmm, perhaps I should clarify this: parsedate and time-1.1.1 (which comes with GHC 6.6.1) have different APIs. parsedate produces CalendarTimes, and the code in time-1.1.1 produces the new

Re: [Haskell-cafe] Help parsing dates and times

2007-10-16 Thread Justin Bailey
On 10/16/07, Bjorn Bringert [EMAIL PROTECTED] wrote: Should we just add XX:XX as an alternative time zone offset format accepted by %z and %Z? Is this a standard format? I'm not sure, but I am getting this date from Google in their XML feeds representing calendar data. The specific element

Re: [Haskell-cafe] Help parsing dates and times

2007-10-16 Thread Carl Witty
On Tue, 2007-10-16 at 09:25 -0700, Justin Bailey wrote: On 10/16/07, Bjorn Bringert [EMAIL PROTECTED] 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.

Re: [Haskell-cafe] Help parsing dates and times

2007-10-16 Thread Bjorn Bringert
On Oct 16, 2007, at 21:39 , Carl Witty wrote: On Tue, 2007-10-16 at 09:25 -0700, Justin Bailey wrote: On 10/16/07, Bjorn Bringert [EMAIL PROTECTED] wrote: Should we just add XX:XX as an alternative time zone offset format accepted by %z and %Z? Is this a standard

[Haskell-cafe] Help parsing dates and times

2007-10-15 Thread Justin Bailey
I am trying to parse various date and time formats using the parseTime function found in (GHC 6.6.1) Data.Time.Format. The one that is giving me trouble looks like this: 2008-06-26T11:00:00.000-07:00 Specifically, the time zone offset isn't covered by the format parameters given. I can almost

Re: [Haskell-cafe] Help parsing dates and times

2007-10-15 Thread Don Stewart
jgbailey: I am trying to parse various date and time formats using the parseTime function found in (GHC 6.6.1) Data.Time.Format. The one that is giving me trouble looks like this: 2008-06-26T11:00:00.000-07:00 Specifically, the time zone offset isn't covered by the format