class Temporal.PlainYearMonth
unstable
A Temporal.PlainYearMonth
represents a particular month on the calendar. For
example, it could be used to represent a particular instance of a monthly
recurring event, like "the June 2019 meeting".
See https://tc39.es/proposal-temporal/docs/yearmonth.html for more details.
Constructors #
new
#PlainYearMonth(isoYear: number,isoMonth: number,calendar?: string,referenceISODay?: number,)
Properties #
readonly
#[Symbol.toStringTag]: "Temporal.PlainYearMonth"
readonly
#calendarId: string
readonly
#daysInMonth: number
readonly
#daysInYear: number
readonly
#inLeapYear: boolean
readonly
#monthsInYear: number
Methods #
#add(durationLike: ,options?: ArithmeticOptions,): Temporal.PlainYearMonth
#since(other: ,options?: DifferenceOptions<"year" | "month">,): Temporal.Duration
#subtract(durationLike: ,options?: ArithmeticOptions,): Temporal.PlainYearMonth
#toLocaleString(locales?: string | string[],options?: Intl.DateTimeFormatOptions,): string
#toPlainDate(day: { day: number; }): Temporal.PlainDate
#toString(options?: ShowCalendarOption): string
#until(other: ,options?: DifferenceOptions<"year" | "month">,): Temporal.Duration
#with(yearMonthLike: PlainYearMonthLike,options?: AssignmentOptions,): Temporal.PlainYearMonth
Static Methods #
#compare(one: ,two: ,): ComparisonResult
#from(item: ,options?: AssignmentOptions,): Temporal.PlainYearMonth