interface Temporal.CalendarProtocol
Unstable
id: string
year(date: ): number
month(date: ): number
monthCode(date: ): string
day(date: ): number
era(date: ): string | undefined
eraYear(date: ): number | undefined
dayOfWeek(date: ): number
dayOfYear(date: ): number
weekOfYear(date: ): number
yearOfWeek(date: ): number
daysInWeek(date: ): number
daysInMonth(date: ): number
daysInYear(date: ): number
monthsInYear(date: ): number
inLeapYear(date: ): boolean
dateFromFields(fields: ,options?: AssignmentOptions,): Temporal.PlainDate
yearMonthFromFields(fields: YearOrEraAndEraYear & MonthOrMonthCode,options?: AssignmentOptions,): Temporal.PlainYearMonth
monthDayFromFields(fields: MonthCodeOrMonthAndYear & { day: number; },options?: AssignmentOptions,): Temporal.PlainMonthDay
dateAdd(): Temporal.PlainDate
dateUntil(): Temporal.Duration
fields(fields: Iterable<string>): Iterable<string>
mergeFields(fields: Record<string, unknown>,additionalFields: Record<string, unknown>,): Record<string, unknown>
optional
toString(): string
optional
toJSON(): string