Temporal.PlainDate

interface

interface Temporal.PlainDate

variable

var Temporal.PlainDate: PlainDateConstructor

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

day

readonly day: number

dayOfWeek

readonly dayOfWeek: number

dayOfYear

readonly dayOfYear: number

weekOfYear

readonly weekOfYear: number | undefined

yearOfWeek

readonly yearOfWeek: number | undefined

daysInWeek

readonly daysInWeek: number

daysInMonth

readonly daysInMonth: number

daysInYear

readonly daysInYear: number

monthsInYear

readonly monthsInYear: number

inLeapYear

readonly inLeapYear: boolean

[Symbol.toStringTag]

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

Methods

toPlainYearMonth

toPlainYearMonth(): PlainYearMonth

toPlainMonthDay

toPlainMonthDay(): PlainMonthDay

add

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

subtract

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

with

with(dateLike: PartialTemporalLike<DateLikeObject>, options?: OverflowOptions): PlainDate

withCalendar

withCalendar(calendarLike: CalendarLike): PlainDate

until

until(other: PlainDateLike, options?: RoundingOptionsWithLargestUnit<DateUnit>): Duration

since

since(other: PlainDateLike, options?: RoundingOptionsWithLargestUnit<DateUnit>): Duration

equals

equals(other: PlainDateLike): boolean

toPlainDateTime

toPlainDateTime(time?: PlainTimeLike): PlainDateTime

toZonedDateTime

toZonedDateTime(timeZone: TimeZoneLike): ZonedDateTime
toZonedDateTime(item: PlainDateToZonedDateTimeOptions): ZonedDateTime

toString

toString(options?: PlainDateToStringOptions): string

toLocaleString

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

toJSON

toJSON(): string

valueOf

valueOf(): never