-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ICU calendars - how to handle {constrain, reject} for out-of-range {eraYear, era} value pairs? #540
Comments
IMO it should always adjust the era accordingly. Suppose you have |
FWIW, the polyfill currently works this way. |
This makes sense, though I think we should document this behavior in case folks are using the |
I agree with you all. |
Let's move this to the ecma402 issue tracker. |
Context: tc39/proposal-temporal#1245 (comment)
How should the ICU calendars handle values of
eraYear
andera
that are "out-of-bounds". For example, if an era lasts ten years, doeseraYear: 15
mean 5 years into the next era? For the gregorian calendar, does{era: 'ce', eraYear: 0}
mean 1 BCE?This does not affect the ISO calendar, which does not support eras, and therefore will not lead to any changes in the stage3 "frozen" spec text. It does, at the moment, affect the polyfill.
cc @Manishearth, @justingrant
The text was updated successfully, but these errors were encountered: