[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: date not parsing full iso-8601
From: |
Paul Eggert |
Subject: |
Re: date not parsing full iso-8601 |
Date: |
Fri, 22 Jul 2005 10:23:48 -0700 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) |
>> The `T' is optional according to the standard
>>
>> It is? As far as I can tell, it's required.
>
> Note that I haven't read the actual standards document. But if that is the
> case, then how can the following be valid formats according to Markus Kuhn's
> document (which w3.org links to, btw)?
Because Markus Kuhn doesn't like the "T" either. I don't know of
anybody who likes the "T" for output that is intended to be
human-readable. However, I believe "T" (or "t") is required by ISO
8601, for the representation of the date and time in a single output.
See, for example, <http://www.cs.tut.fi/~jkorpela/iso8601.html>.
>> So, for example:
>>
>> $ date -i
>> 2005-07-22 09:13:17.959906-07:00
>
> Good plan, I like this. Thanks Paul.
You're welcome. I'd also like to hear Jim Meyering's opinion, though,
before proceeding.
I should mention that the command:
date -d `date -i`
should work under this proposal, without any changes to the
date-parsing code executed by date -d. That's one reason I'm
proposing this.