Allow to modify hour-cycle in UDateIntervalFormat

Description

UDateIntervalFormat doesn't provide a way to modify the hour-cycle representation.

This is blocking the implementation of the ECMA-402 proposal <https://github.com/tc39/proposal-intl-DateTimeFormat-formatRange>.

Test case:

  • Expected: At least one skeleton prints "24".

  • Actual: No input skeleton prints "24".

Activity

Show:
Shane Carr
January 9, 2020, 5:40 PM

Closing as fixed by PR #944 ().

Shane Carr
December 11, 2019, 2:36 AM

Reassigning to Caio. Re-reading the ticket, I think this is probably something to look at on the ICU side.

Shane Carr
October 28, 2019, 8:33 PM

A few options here:

1. Add CLDR data (could complicate translator data acquisition / data quality)
2. Change ICU to get the behavior we want with existing CLDR data (might be complicated or infeasible)
3. Keep ICU behavior as-is and modify ECMAScript spec to match (could cause consistency problems when formatting a date and an interval)

Next step: discuss option 3 with ECMA-402.

Shane Carr
October 4, 2019, 4:50 PM

Investigate if this is feasible to fix. If this is a code fix, then fix it. If it requires CLDR data, then that is a bigger problem, and we can keep this issue on the backlog without blocking ECMA-402.

Fixed by Other Ticket

Assignee

Caio Lima

Reporter

André Bargull

Components

Labels

Priority

major

Fix versions