- From: <bugzilla@jessica.w3.org>
- Date: Tue, 10 May 2016 13:47:45 +0000
- To: public-qt-comments@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=29616
Abel Braaksma <abel.braaksma@xs4all.nl> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |abel.braaksma@xs4all.nl
--- Comment #4 from Abel Braaksma <abel.braaksma@xs4all.nl> ---
(In reply to Benito van der Zander from comment #3)
> It is also not clear what happens to fractions with such a format
>
> format-time(xs:time("12:22:33.123456"), "[f#.0,2]")
>
> The fraction truncation should probably be consistent with the year
> truncation
In Bug 29555, comment 3, the proposal is (and I think it was accepted) that the
first presentation modifier *must* follow the pattern "\d+#*". Your pattern is
therefore not allowed (the "." should not appear there and the "0" cannot
follow the "#").
The proper way to express a min width of 2 would be:
format-time(xs:time("12:22:33.123456"), "[f0#,2]")
or:
format-time(xs:time("12:22:33.123456"), "[f0,2]")
or:
format-time(xs:time("12:22:33.123456"), "[f00]")
Note that the first two expressions above have a max width of infinity
according to that same comment. To force a max of two digits, one has to write:
format-time(xs:time("12:22:33.123456"), "[f0#,2-2]")
or:
format-time(xs:time("12:22:33.123456"), "[f0,2-2]")
--
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Tuesday, 10 May 2016 13:49:41 UTC