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 Jump to heading
new
Jump to headingPlainDate(isoYear: number,isoMonth: number,isoDay: number,calendar?: string,)
Properties Jump to heading
readonly
Jump to heading[Symbol.toStringTag]: "Temporal.PlainDate"
readonly
Jump to headingcalendarId: string
readonly
Jump to headingday: number
readonly
Jump to headingdayOfWeek: number
readonly
Jump to headingdayOfYear: number
readonly
Jump to headingdaysInMonth: number
readonly
Jump to headingdaysInWeek: number
readonly
Jump to headingdaysInYear: number
readonly
Jump to headingera: string | undefined
readonly
Jump to headingeraYear: number | undefined
readonly
Jump to headinginLeapYear: boolean
readonly
Jump to headingmonth: number
readonly
Jump to headingmonthCode: string
readonly
Jump to headingmonthsInYear: number
readonly
Jump to headingweekOfYear: number | undefined
readonly
Jump to headingyear: number
readonly
Jump to headingyearOfWeek: number | undefined
Methods Jump to heading
Jump to headingadd(durationLike: ,options?: ArithmeticOptions,): Temporal.PlainDate
Jump to headingequals(other: ): boolean
Jump to headingsince(other: ,options?: DifferenceOptions<"year"
| "month"
| "week"
| "day">,): Temporal.Duration
Jump to headingsubtract(durationLike: ,options?: ArithmeticOptions,): Temporal.PlainDate
Jump to headingtoJSON(): string
Jump to headingtoLocaleString(locales?: string | string[],options?: Intl.DateTimeFormatOptions,): string
Jump to headingtoPlainDateTime(temporalTime?: ): Temporal.PlainDateTime
Jump to headingtoString(options?: ShowCalendarOption): string
Jump to headingtoZonedDateTime(timeZoneAndTime: string | { timeZone: TimeZoneLike; plainTime?: ; }): Temporal.ZonedDateTime
Jump to headinguntil(other: ,options?: DifferenceOptions<"year"
| "month"
| "week"
| "day">,): Temporal.Duration
Jump to headingvalueOf(): never
Jump to headingwith(dateLike: PlainDateLike,options?: AssignmentOptions,): Temporal.PlainDate
Static Methods Jump to heading
Jump to headingcompare(one: ,two: ,): ComparisonResult
Jump to headingfrom(item: ,options?: AssignmentOptions,): Temporal.PlainDate