Calendar

external class Calendar(calendarIdentifier: String) : CalendarProtocol(source)

A Temporal.Calendar is a representation of a calendar system. It includes information about how many days are in each year, how many months are in each year, how many days are in each month, and how to do arithmetic in that calendar system.

See https://tc39.es/proposal-temporal/docs/calendar.html for more details.

Constructors

Link copied to clipboard
constructor(calendarIdentifier: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val id: String

Functions

Link copied to clipboard
open override fun dateAdd(date: PlainDate, duration: Duration, options: ArithmeticOptions): PlainDate
Link copied to clipboard
Link copied to clipboard
open override fun dateUntil(one: PlainDate, two: PlainDate, options: DifferenceOptions<DateUnit<*>>): Duration
Link copied to clipboard
open override fun day(date: Any): Int
Link copied to clipboard
open override fun dayOfWeek(date: Any): Int
Link copied to clipboard
open override fun dayOfYear(date: Any): Int
Link copied to clipboard
open override fun daysInMonth(date: Any): Int
Link copied to clipboard
open override fun daysInWeek(date: Any): Int
Link copied to clipboard
open override fun daysInYear(date: Any): Int
Link copied to clipboard
open override fun era(date: Any): String?
Link copied to clipboard
open override fun eraYear(date: Any): Int?
Link copied to clipboard
open override fun fields(fields: JsIterable<String>): JsIterable<String>
open override fun fields(fields: ReadonlyArray<String>): JsIterable<String>
Link copied to clipboard
open override fun inLeapYear(date: Any): Boolean
Link copied to clipboard
open override fun mergeFields(fields: Record<String, *>, additionalFields: Record<String, *>): Record<String, *>
Link copied to clipboard
open override fun month(date: Any): Int
Link copied to clipboard
open override fun monthCode(date: Any): String
Link copied to clipboard
Link copied to clipboard
open override fun monthsInYear(date: Any): Int
Link copied to clipboard
fun toJSON(): String
Link copied to clipboard
open override fun weekOfYear(date: Any): Int
Link copied to clipboard
open override fun year(date: Any): Int
Link copied to clipboard
Link copied to clipboard
open override fun yearOfWeek(date: Any): Int