import { Temporal } from "https://deno.land/x/deno@v2.0.4/cli/tsc/dts/lib.deno.unstable.d.ts";
const { PlainYearMonth } = Temporal;
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.
Methods
add(durationLike: Temporal.Duration | DurationLike | string, options?: ArithmeticOptions): Temporal.PlainYearMonth
equals(other: Temporal.PlainYearMonth | PlainYearMonthLike | string): boolean
since(other: Temporal.PlainYearMonth | PlainYearMonthLike | string, options?: DifferenceOptions<"year" | "month">): Temporal.Duration
subtract(durationLike: Temporal.Duration | DurationLike | string, options?: ArithmeticOptions): Temporal.PlainYearMonth
toJSON(): string
toLocaleString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string
toPlainDate(day: { day: number; }): Temporal.PlainDate
toString(options?: ShowCalendarOption): string
until(other: Temporal.PlainYearMonth | PlainYearMonthLike | string, options?: DifferenceOptions<"year" | "month">): Temporal.Duration
valueOf(): never
with(yearMonthLike: PlainYearMonthLike, options?: AssignmentOptions): Temporal.PlainYearMonth
Static Methods
compare(one: Temporal.PlainYearMonth | PlainYearMonthLike | string, two: Temporal.PlainYearMonth | PlainYearMonthLike | string): ComparisonResult
from(item: Temporal.PlainYearMonth | PlainYearMonthLike | string, options?: AssignmentOptions): Temporal.PlainYearMonth