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.PlainMonthDay

A modern runtime for JavaScript and TypeScript.
Latest
class Temporal.PlainMonthDay
import { Temporal } from "https://deno.land/x/deno@v1.41.0/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?: CalendarLike,
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
getISOFields(): PlainDateISOFields
toJSON(): string
toLocaleString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string
toPlainDate(year: { year: number; }): Temporal.PlainDate
toString(options?: ShowCalendarOption): string
valueOf(): never