-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds an 'iso8601' calendar and changes the polyfill code for Temporal.Date, Temporal.DateTime, Temporal.YearMonth, and Temporal.MonthDay so that they gain a CALENDAR slot, and delegate all of their calendar-sensitive operations to the object in the CALENDAR slot. Among the changes made to those types: - Constructors gain a calendar argument of type Temporal.Calendar. - Types gain a 'calendar' property of type Temporal.Calendar. - from() accepts a 'calendar' string or Temporal.Calendar. - Temporal.Date and Temporal.DateTime accept a calendar in with(). - Temporal.MonthDay & Temporal.YearMonth throw on a calendar in with(). - The calendar is returned in getFields() (see #641). - equals() and compare() take the calendar into account (see #625). This includes documentation, but leaves out spec changes and all but the necessary test changes for the time being.
- Loading branch information
Showing
29 changed files
with
785 additions
and
307 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.