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.
readonly
[Symbol.toStringTag]: "Temporal.PlainYearMonth"readonly
calendarId: stringreadonly
daysInMonth: numberreadonly
daysInYear: numberreadonly
era: string | undefinedreadonly
eraYear: number | undefinedreadonly
inLeapYear: booleanreadonly
month: numberreadonly
monthCode: stringreadonly
monthsInYear: numberreadonly
year: numberadd(durationLike: ,options?: ArithmeticOptions,): Temporal.PlainYearMonthequals(other: ): booleansince(other: ,options?: DifferenceOptions<"year" | "month">,): Temporal.Durationsubtract(durationLike: ,options?: ArithmeticOptions,): Temporal.PlainYearMonthtoJSON(): stringtoLocaleString(locales?: string | string[],options?: Intl.DateTimeFormatOptions,): stringtoPlainDate(day: { day: number; }): Temporal.PlainDatetoString(options?: ShowCalendarOption): stringuntil(other: ,options?: DifferenceOptions<"year" | "month">,): Temporal.DurationvalueOf(): neverwith(yearMonthLike: PlainYearMonthLike,options?: AssignmentOptions,): Temporal.PlainYearMonthcompare(one: ,two: ,): ComparisonResultfrom(item: ,options?: AssignmentOptions,): Temporal.PlainYearMonth