CLDR Ticket #2845(closed defect: fixed)
Change LDML spec for 'S' date pattern character: should truncate, not round
|Reported by:||pedberg||Owned by:||pedberg|
(Related to ICU ticket #7728) Currently the LDML spec says about the 'S' date pattern character: "Fractional Second - rounds to the count of letters." (and it gives an example in which SSSS rounds .34567 to . 3457). This is inconsistent with the way other time fields such as seconds and minutes are handled; they are truncated, not rounded, e.g. a time of 9:18:59 is displayed as 9:18 with H:mm. It also leads to problems for values such as 1.99 with a pattern of "s.S" - rounding should produce "2.0" but the fields are not supposed to affect each other in this way.
Instead, S+ should truncate, so that SSSS with .34567 displays .3456, and the documentation for S should be changed to indicate this.
- Owner changed from somebody to pedberg
- Status changed from new to assigned
- Status changed from assigned to accepted
- Review set to mark
- Status changed from accepted to closed
- Resolution set to fixed
- Review changed from mark to yoshito