W3C home > Mailing lists > Public > public-qt-comments@w3.org > September 2016

[Bug 29765] [FO31] Formatting the Year Component

From: <bugzilla@jessica.w3.org>
Date: Tue, 06 Sep 2016 21:42:25 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-29765-523-RMqNYHlBYr@http.www.w3.org/Bugs/Public/>

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:58:02 UTC