CalendarProtocol

sealed external interface CalendarProtocol : CalendarLike(source)

Inheritors

Types

Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
abstract val id: String

Functions

Link copied to clipboard
abstract fun dateAdd(date: PlainDate, duration: Duration, options: ArithmeticOptions = definedExternally): PlainDate
Link copied to clipboard
abstract fun dateFromFields(fields: CalendarProtocol.DateFromFields, options: AssignmentOptions = definedExternally): PlainDate
Link copied to clipboard
abstract fun dateUntil(one: PlainDate, two: PlainDate, options: DifferenceOptions<DateUnit<*>> = definedExternally): Duration
Link copied to clipboard
abstract fun day(date: Any): Int
Link copied to clipboard
abstract fun dayOfWeek(date: Any): Int
Link copied to clipboard
abstract fun dayOfYear(date: Any): Int
Link copied to clipboard
abstract fun daysInMonth(date: Any): Int
Link copied to clipboard
abstract fun daysInWeek(date: Any): Int
Link copied to clipboard
abstract fun daysInYear(date: Any): Int
Link copied to clipboard
abstract fun era(date: Any): String?
Link copied to clipboard
abstract fun eraYear(date: Any): Int?
Link copied to clipboard
abstract fun fields(fields: JsIterable<String>): JsIterable<String>
abstract fun fields(fields: ReadonlyArray<String>): JsIterable<String>
Link copied to clipboard
abstract fun inLeapYear(date: Any): Boolean
Link copied to clipboard
abstract fun mergeFields(fields: Record<String, *>, additionalFields: Record<String, *>): Record<String, *>
Link copied to clipboard
abstract fun month(date: Any): Int
Link copied to clipboard
abstract fun monthCode(date: Any): String
Link copied to clipboard
abstract fun monthDayFromFields(fields: CalendarProtocol.MonthDayFromFields, options: AssignmentOptions = definedExternally): PlainMonthDay
Link copied to clipboard
abstract fun monthsInYear(date: Any): Int
Link copied to clipboard
abstract fun weekOfYear(date: Any): Int
Link copied to clipboard
abstract fun year(date: Any): Int
Link copied to clipboard
Link copied to clipboard
abstract fun yearOfWeek(date: Any): Int