Re: parse-datetime: cannot handle ISO-8601 strings

2011-01-03 Thread Simon Josefsson
Paul Eggert writes: > On 01/02/2011 02:40 PM, Simon Josefsson wrote: >> Is this intentional somehow? > > I'm afraid it was originally, as T meant the > military time zone T. No doubt this should get > revisited at some point, as military time zone > letters are pretty much obsolete. > > ISO 8601

Re: parse-datetime: cannot handle ISO-8601 strings

2011-01-02 Thread Paul Eggert
On 01/02/2011 02:40 PM, Simon Josefsson wrote: > Is this intentional somehow? I'm afraid it was originally, as T meant the military time zone T. No doubt this should get revisited at some point, as military time zone letters are pretty much obsolete. ISO 8601 strings like 1970-01-01T00:00:00Z ar

parse-datetime: cannot handle ISO-8601 strings

2011-01-02 Thread Simon Josefsson
Ironically the parse-datetime module -- which otherwise appears to handle all practically occuring formats -- doesn't seem able to handle complete ISO-8601 strings, which can be reproduce easily like this: $ LANG=C date --date=1970-01-01T00:00:00Z date: invalid date `1970-01-01T00:00:00Z' $ $ LA