PlainMonthDay

external class PlainMonthDay(isoMonth: Int, isoDay: Int, calendar: CalendarLike = definedExternally, referenceISOYear: Int = definedExternally) : Localizable<DateTimeFormatOptions> , CalendarLike(source)

A Temporal.PlainMonthDay represents a particular day on the calendar, but without a year. For example, it could be used to represent a yearly recurring event, like "Bastille Day is on the 14th of July."

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

Constructors

Link copied to clipboard
constructor(isoMonth: Int, isoDay: Int, calendar: CalendarLike = definedExternally, referenceISOYear: Int = definedExternally)

Types

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
val day: Int
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun toJSON(): String
Link copied to clipboard

Returns a value as a string value appropriate to the host environment's current locale.

open fun toLocaleString(locales: Locale, options: DateTimeFormatOptions = definedExternally): String
open fun toLocaleString(locales: ReadonlyArray<Locale>, options: DateTimeFormatOptions = definedExternally): String
open fun toLocaleString(locales: ReadonlyArray<UnicodeBCP47LocaleIdentifier>, options: DateTimeFormatOptions = definedExternally): String

open fun toLocaleString(locales: UnicodeBCP47LocaleIdentifier, options: DateTimeFormatOptions = definedExternally): String

Converts a value to a string by using the current or specified locale.

Link copied to clipboard
Link copied to clipboard
fun toString(options: ShowCalendarOption = definedExternally): String
Link copied to clipboard
fun with(monthDayLike: PlainMonthDayLike, options: AssignmentOptions = definedExternally): PlainMonthDay