class Temporal.PlainDate
unstable
A Temporal.PlainDate represents a calendar date. "Calendar date" refers to the
concept of a date as expressed in everyday usage, independent of any time
zone. For example, it could be used to represent an event on a calendar
which happens during the whole day no matter which time zone it's happening
in.
See https://tc39.es/proposal-temporal/docs/date.html for more details.
Constructors #
new
#PlainDate(isoYear: number,isoMonth: number,isoDay: number,calendar?: string,)Properties #
readonly
#[Symbol.toStringTag]: "Temporal.PlainDate"readonly
#calendarId: stringreadonly
#daysInMonth: numberreadonly
#daysInWeek: numberreadonly
#daysInYear: numberreadonly
#inLeapYear: booleanreadonly
#monthsInYear: numberreadonly
#weekOfYear: number | undefinedreadonly
#yearOfWeek: number | undefinedMethods #
#add(durationLike: ,options?: ArithmeticOptions,): Temporal.PlainDate#since(other: ,options?: DifferenceOptions<"year"
| "month"
| "week"
| "day">,): Temporal.Duration#subtract(durationLike: ,options?: ArithmeticOptions,): Temporal.PlainDate#toLocaleString(locales?: string | string[],options?: Intl.DateTimeFormatOptions,): string#toPlainDateTime(temporalTime?: ): Temporal.PlainDateTime#toString(options?: ShowCalendarOption): string#toZonedDateTime(timeZoneAndTime: string | { timeZone: TimeZoneLike; plainTime?: ; }): Temporal.ZonedDateTime#until(other: ,options?: DifferenceOptions<"year"
| "month"
| "week"
| "day">,): Temporal.Duration#with(dateLike: PlainDateLike,options?: AssignmentOptions,): Temporal.PlainDate#withCalendar(calendar: CalendarLike): Temporal.PlainDateStatic Methods #
#compare(one: ,two: ,): ComparisonResult#from(item: ,options?: AssignmentOptions,): Temporal.PlainDate