Skip to content

Stage 2.7 review feedback: Include more information for CalendarResolveFields and arithmetic year #57

@Manishearth

Description

@Manishearth

Temporal defines CalendarResolveFields and leaves the decision up to the implementor for non-Gregorian calendars, with some rough guidance.

intl-era-monthcode comes close enough to having a proper definition at least for eras. It might be good to provide an era resolution algorithm. Month code resolution would be harder.

Even if not, it would be very useful to implementors to define the arithmetic year to era year conversion: The spec defines what the eras are, and it defines the arithmetic year via "epoch ISO year", but it doesn't actually connect the two. For calendars with an era it would probably be good to have that conversion included in Table 2: e.g. 1 BE = 1 arithmeticYear and 1 Reiwa = 2019 epochYear. The arithmetic year is not an intrinsic calendrical concept, it is a Temporal (and CLDR/ICU) concept, so it's worth providing some more filling on it.

(I'm happy to make a PR to add to Table 2 if people think having this information is good.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions