Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno/cli/tsc/dts/lib.deno.unstable.d.ts>Temporal.PlainYearMonth

A modern runtime for JavaScript and TypeScript.
Latest
class Temporal.PlainYearMonth
import { Temporal } from "https://deno.land/x/deno@v1.41.0/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.

Constructors

new
PlainYearMonth(
isoYear: number,
isoMonth: number,
calendar?: CalendarLike,
referenceISODay?: number,
)

Properties

readonly
calendarId: string
readonly
daysInMonth: number
readonly
daysInYear: number
readonly
era: string | undefined
readonly
eraYear: number | undefined
readonly
inLeapYear: boolean
readonly
month: number
readonly
monthCode: string
readonly
monthsInYear: number
readonly
year: number
readonly
[Symbol.toStringTag]: "Temporal.PlainYearMonth"

Methods

getISOFields(): PlainDateISOFields
toJSON(): string
toLocaleString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string
toPlainDate(day: { day: number; }): Temporal.PlainDate
toString(options?: ShowCalendarOption): string
valueOf(): never