[Bug 29496] [FO31] parse-ietf-date with military timezones and leniency towards single-digit numbers

https://www.w3.org/Bugs/Public/show_bug.cgi?id=29496

--- Comment #6 from Michael Kay <mike@saxonica.com> ---
Having slight difficulty working out how best to say this in a way that
actually tells people that a tzoffset of 130 means one hour and 30 minutes,
without relying on the reader's common sense, or at the other extreme treating
them like idiots...

The production rule is

tzoffset ::= ("+"|"-") hours ":"? minutes?

where 

hours   ::=     digit digit?
minutes ::=     digit digit

So assuming people know how to parse from BNF, I think the best way would be to
refer to the parts of the production rule:

"If a @tzoffset@ is supplied then @hours@ supplies the hours part of the
timezone offset, and @minutes@, which defaults to zero if absent, supplies the
minutes part."

That's dangerously close to being tautological but I think the font changes
make clear the distinction between syntactic components of the supplied string
and semantic components of the resulting value.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Tuesday, 26 April 2016 14:21:36 UTC