[Bug 29765] [FO31] 9.8.4.4 Formatting the Year Component

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

Michael Kay <mike@saxonica.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

--- Comment #5 from Michael Kay <mike@saxonica.com> ---
I propose the following rewrite:

The rules for the Year component (Y) are the same as those in <specref
ref="formatting-integer-valued-components"/>, except that the value  of the
year as output is the value of the year component of the supplied value modulo
ten to the power <var>N</var> where <var>N</var> is determined as follows:

* If the width modifier is present and defines a finite maximum width, then
that maximum width.

* Otherwise, if the first presentation modifier takes the form of a
decimal-digit-pattern, then:

** let W be the number of optional-digit-signs and mandatory-digit-signs in
that decimal-digit-pattern.

** if W is 2 or more, then W. 

* Otherwise, <var>N</var> is infinity (that is the year is output in full).

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

Received on Tuesday, 6 September 2016 21:42:33 UTC