icu4x icon indicating copy to clipboard operation
icu4x copied to clipboard

Public API for Date::added() and Date::until()

Open hsivonen opened this issue 2 years ago • 3 comments
trafficstars

Temporal requires https://tc39.es/proposal-temporal/#sec-temporal-calendardateaddition and https://tc39.es/proposal-temporal/#sec-temporal-calendardatedifference , but these are unstable hidden APIs in ICU4X. For Temporal compat, we need public API surface for these.

hsivonen avatar Aug 29 '23 17:08 hsivonen

Given that we currently have experimental code for this, and it ties in a lot with Temporal and the calendar work we've been doing, I think it should be a 1.x priority.

sffc avatar Sep 21 '23 17:09 sffc

https://tc39.es/proposal-temporal/#sec-temporal-calendardateadd

sffc avatar May 08 '25 21:05 sffc

Also see https://github.com/tc39/proposal-intl-era-monthcode/issues/32

sffc avatar May 08 '25 21:05 sffc

We have these APIs but they are currently unstable. TO be graduated in 2.2

Manishearth avatar Oct 23 '25 22:10 Manishearth

See also: https://github.com/unicode-org/icu4x/issues/7161

Manishearth avatar Oct 23 '25 22:10 Manishearth