Re: Copypaste error in vague date parsing algorithm

Henri Sivonen wrote:
> 
> Step 21 says:
>> If second is not a number in the range 0 ≤ hour < 60, then fail.
> 
> 
> "hour" should be "second"

Surely neither is required.  A "range" should be
just that, not a compound inequality, so the
text you cite might be better cast as :

"If second is not a number in the range [0, 60), then fail."

This assumes that everywhere else in the document, the
same notation is used to indicate half-closed intervals;
the most common alternative notation would be "[0, 60[".

Philip TAYLOR

Received on Monday, 17 December 2007 22:56:02 UTC