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: string
readonly
Jump to headingdaysInMonth: number
readonly
Jump to headingdaysInYear: number
readonly
Jump to headingera: string | undefined
readonly
Jump to headingeraYear: number | undefined
readonly
Jump to headinginLeapYear: boolean
readonly
Jump to headingmonth: number
readonly
Jump to headingmonthCode: string
readonly
Jump to headingmonthsInYear: number
readonly
Jump to headingyear: number
Methods Jump to heading
Jump to headingadd(durationLike: ,options?: ArithmeticOptions,): Temporal.PlainYearMonth
Jump to headingequals(other: ): boolean
Jump to headingsince(other: ,options?: DifferenceOptions<"year" | "month">,): Temporal.Duration
Jump to headingsubtract(durationLike: ,options?: ArithmeticOptions,): Temporal.PlainYearMonth
Jump to headingtoJSON(): string
Jump to headingtoLocaleString(locales?: string | string[],options?: Intl.DateTimeFormatOptions,): string
Jump to headingtoPlainDate(day: { day: number; }): Temporal.PlainDate
Jump to headingtoString(options?: ShowCalendarOption): string
Jump to headinguntil(other: ,options?: DifferenceOptions<"year" | "month">,): Temporal.Duration
Jump to headingvalueOf(): never
Jump to headingwith(yearMonthLike: PlainYearMonthLike,options?: AssignmentOptions,): Temporal.PlainYearMonth
Static Methods Jump to heading
Jump to headingcompare(one: ,two: ,): ComparisonResult
Jump to headingfrom(item: ,options?: AssignmentOptions,): Temporal.PlainYearMonth