Temporal.PlainYearMonth

interface

interface Temporal.PlainYearMonth

variable

var Temporal.PlainYearMonth: PlainYearMonthConstructor

Properties

calendarId

readonly calendarId: string

era

readonly era: string | undefined

eraYear

readonly eraYear: number | undefined

year

readonly year: number

month

readonly month: number

monthCode

readonly monthCode: string

daysInYear

readonly daysInYear: number

daysInMonth

readonly daysInMonth: number

monthsInYear

readonly monthsInYear: number

inLeapYear

readonly inLeapYear: boolean

[Symbol.toStringTag]

readonly [Symbol.toStringTag]: "Temporal.PlainYearMonth"

Methods

with

with(yearMonthLike: PartialTemporalLike<YearMonthLikeObject>, options?: OverflowOptions): PlainYearMonth

add

add(duration: DurationLike, options?: OverflowOptions): PlainYearMonth

subtract

subtract(duration: DurationLike, options?: OverflowOptions): PlainYearMonth

until

until(other: PlainYearMonthLike, options?: RoundingOptionsWithLargestUnit<"year" | "month">): Duration

since

since(other: PlainYearMonthLike, options?: RoundingOptionsWithLargestUnit<"year" | "month">): Duration

equals

equals(other: PlainYearMonthLike): boolean

toString

toString(options?: PlainDateToStringOptions): string

toLocaleString

toLocaleString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string

toJSON

toJSON(): string

valueOf

valueOf(): never

toPlainDate

toPlainDate(item: PlainYearMonthToPlainDateOptions): PlainDate