Skip to content

What exactly should be the new internal slots for Temporal.[Date][Time]? #290

@sffc

Description

@sffc

In addition to the calendar slot, @pipobscure suggested adding two new slots to Temporal.Date:

  • isLeapMonth
  • era

Should isLeapMonth be bundled into month? For example, a calendar could choose to store a record like { number, isLeap } into the month field. I have a slight preference for this model. The record would have to be immutable (until the records proposal moves forward, this could be done via an object with a prototype). The decision here should dictate tc39/proposal-intl-displaynames#55.

Do we need any extra slots for Temporal.Time?

Metadata

Metadata

Assignees

No one assigned

    Labels

    calendarPart of the effort for Temporal Calendar APIhas-consensus

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions