interface ExtendedPlainDate
implements ComPlainDate
import { type ExtendedPlainDate } from "https://deno.land/x/complaindate@v1.0.1/ExPlainDate.ts";
Describes an extended plain-date object with extra properties and convenience methods for common operations, of which many are chainable.
Properties
toLocalInstant: (time?: { hour?: number | string; minute?: number | string; second?: number | string; millisecond?: number | string; }) => Date
Get a native JS Date
object in the system's local timezone.
toInstant: (timezone: string, time?: { hour?: number | string; minute?: number | string; second?: number | string; millisecond?: number | string; }) => Date
Get a native JS Date
object in a named timezone.
quarter: () => QuarterNumber
Quarter of the year (1-4)
weekDayNumber: () => WeekDayNumber
ISO weekday number (1-7) starting with Monday
differenceInDays: (to: ComPlainDate) => number
differenceInBusinessDays: (to: ComPlainDate) => number
differenceInMonths: (to: ComPlainDate) => number
differenceInYears: (to: ComPlainDate) => number