Skip to content

How should calendars expose calendar-specific date and time properties? #291

@sffc

Description

@sffc

Examples of such properties:

  • isLeapYear, weekOfYear, dayOfWeek, daysInMonth, daysInYear (currently ISO-based computed properties on Temporal.Date)
  • yearType (such as "kesidran", "chaser", "maleh" in the Hebrew calendar)
  • Possibly other interesting Calendar-specific computed properties

I suggested the following possible change, creating a new object for accessing these properties (name bikeshedding aside):

// Current
d.weekOfYear
d.isLeapYear

// New
d.dateProperties.weekOfYear
d.dateProperties.isLeapYear

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