Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/usr.bin/cal



Alan Barrett <apb%cequrux.com@localhost> writes:

> On Wed, 19 Dec 2007, Perry E. Metzger wrote:
>> >    src/usr.bin/cal: cal.c
>> > the only natural choice left is to make it understand ISO style.
>> So the main change is that it now handles things like  "2007/12"?
>
> ISO 8601 uses dashes, not slashes, to separate yyyy-mm-dd.  Please
> add support for "2007-12", and I'd mildly prefer to see "2007/12" be
> a syntax error (to encourage people to use the ISO 8601 style).  See
> <http://www.cl.cam.ac.uk/~mgk25/iso-time.html> for a reasonable summary
> of the ISO 8601 date/time format.

I concur.  As a human parser I see 12/2007 (more often) and also
2007/12, but 2007-12 is unambigious.  Really one needs to check number
to parse N/M correctly, and that's a bit scary.



Home | Main Index | Thread Index | Old Index