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

[Bug 29615] roman and max-width year

From: <bugzilla@jessica.w3.org>
Date: Mon, 09 May 2016 15:45:13 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-29615-523-kHchC3BUBD@http.www.w3.org/Bugs/Public/>

Josh Spiegel <josh.spiegel@oracle.com> changed:

           What    |Removed                     |Added
                 CC|                            |josh.spiegel@oracle.com

--- Comment #3 from Josh Spiegel <josh.spiegel@oracle.com> ---

The point of the truncation logic is to get the year to fit within the maximum

format-date(xs:date("1998-01-01"), "[Y,2-2]") => 98
format-date(xs:date("1999-01-01"), "[Y,2-2]") => 99

If we applied this logic in the case of roman numerals, it would fail to print
a value within the maximum width in many cases.  

format-date(xs:date("1998-01-01"), "[Yi,2-2]") => xcviii (instead of mcmxcviii)
format-date(xs:date("1999-01-01"), "[Yi,2-2]") => xcix (instead of mcmxcix)

And in some cases it will unnecessarily truncate the value. 

format-date(xs:date("0101-01-01"), "[Yi,2-2]") => i (instead of ci)

You are receiving this mail because:
You are the QA Contact for the bug.
Received on Monday, 9 May 2016 15:45:17 UTC

This archive was generated by hypermail 2.3.1 : Monday, 9 May 2016 15:45:17 UTC