import { Temporal } from "https://deno.land/x/deno@v2.0.4/cli/tsc/dts/lib.deno.unstable.d.ts";
const { PlainDate } = Temporal;
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.
Methods
add(durationLike: Temporal.Duration | DurationLike | string, options?: ArithmeticOptions): Temporal.PlainDate
equals(other: Temporal.PlainDate | PlainDateLike | string): boolean
since(other: Temporal.PlainDate | PlainDateLike | string, options?: DifferenceOptions<>): Temporal.Duration
| "year"
| "month"
| "week"
| "day"
subtract(durationLike: Temporal.Duration | DurationLike | string, options?: ArithmeticOptions): Temporal.PlainDate
toJSON(): string
toLocaleString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string
toPlainDateTime(temporalTime?: Temporal.PlainTime | PlainTimeLike | string): Temporal.PlainDateTime
toString(options?: ShowCalendarOption): string
toZonedDateTime(timeZoneAndTime: string | { timeZone: TimeZoneLike; plainTime?: Temporal.PlainTime | PlainTimeLike | string; }): Temporal.ZonedDateTime
until(other: Temporal.PlainDate | PlainDateLike | string, options?: DifferenceOptions<>): Temporal.Duration
| "year"
| "month"
| "week"
| "day"
valueOf(): never
with(dateLike: PlainDateLike, options?: AssignmentOptions): Temporal.PlainDate
withCalendar(calendar: CalendarLike): Temporal.PlainDate
Static Methods
compare(one: Temporal.PlainDate | PlainDateLike | string, two: Temporal.PlainDate | PlainDateLike | string): ComparisonResult
from(item: Temporal.PlainDate | PlainDateLike | string, options?: AssignmentOptions): Temporal.PlainDate