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 Jump to heading
new
Jump to headingPlainYearMonth(isoYear: number,isoMonth: number,calendar?: string,referenceISODay?: number,)Properties Jump to heading
readonly
Jump to heading[Symbol.toStringTag]: "Temporal.PlainYearMonth"readonly
Jump to headingcalendarId: stringreadonly
Jump to headingdaysInMonth: numberreadonly
Jump to headingdaysInYear: numberreadonly
Jump to headingera: string | undefinedreadonly
Jump to headingeraYear: number | undefinedreadonly
Jump to headinginLeapYear: booleanreadonly
Jump to headingmonth: numberreadonly
Jump to headingmonthCode: stringreadonly
Jump to headingmonthsInYear: numberreadonly
Jump to headingyear: numberMethods Jump to heading
Jump to headingadd(durationLike: ,options?: ArithmeticOptions,): Temporal.PlainYearMonthJump to headingequals(other: ): booleanJump to headingsince(other: ,options?: DifferenceOptions<"year" | "month">,): Temporal.DurationJump to headingsubtract(durationLike: ,options?: ArithmeticOptions,): Temporal.PlainYearMonthJump to headingtoJSON(): stringJump to headingtoLocaleString(locales?: string | string[],options?: Intl.DateTimeFormatOptions,): stringJump to headingtoPlainDate(day: { day: number; }): Temporal.PlainDateJump to headingtoString(options?: ShowCalendarOption): stringJump to headinguntil(other: ,options?: DifferenceOptions<"year" | "month">,): Temporal.DurationJump to headingvalueOf(): neverJump to headingwith(yearMonthLike: PlainYearMonthLike,options?: AssignmentOptions,): Temporal.PlainYearMonthStatic Methods Jump to heading
Jump to headingcompare(one: ,two: ,): ComparisonResultJump to headingfrom(item: ,options?: AssignmentOptions,): Temporal.PlainYearMonth