Temporal.CalendarProtocol - Web documentation
interface Temporal.CalendarProtocol
Unstable

Properties

id: string

Methods

era(date: ): string | undefined
eraYear(date: ): number | undefined
dateUntil(
options?: DifferenceOptions<
"year"
| "month"
| "week"
| "day"
>
,
): 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