Skip to content

ICU calendars - how to handle {constrain, reject} for out-of-range {eraYear, era} value pairs? #540

Open
@cjtenny

Description

@cjtenny

Context: tc39/proposal-temporal#1245 (comment)

How should the ICU calendars handle values of eraYear and era that are "out-of-bounds". For example, if an era lasts ten years, does eraYear: 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    TemporalIssues relating to Intl support in Temporal

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions