Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

A modern runtime for JavaScript and TypeScript.
Latest
class Temporal.PlainMonthDay
import { Temporal } from "https://deno.land/x/deno@v2.0.4/cli/tsc/dts/lib.deno.unstable.d.ts";
const { PlainMonthDay } = Temporal;

A Temporal.PlainMonthDay represents a particular day on the calendar, but without a year. For example, it could be used to represent a yearly recurring event, like "Bastille Day is on the 14th of July."

See https://tc39.es/proposal-temporal/docs/monthday.html for more details.

Constructors

new
PlainMonthDay(
isoMonth: number,
isoDay: number,
calendar?: string,
referenceISOYear?: number,
)

Properties

readonly
calendarId: string
readonly
day: number
readonly
monthCode: string
readonly
[Symbol.toStringTag]: "Temporal.PlainMonthDay"

Methods

equals(other: Temporal.PlainMonthDay | PlainMonthDayLike | string): boolean
toJSON(): string
toLocaleString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string
toPlainDate(year: { year: number; }): Temporal.PlainDate
toString(options?: ShowCalendarOption): string
valueOf(): never