interface ExtendedPlainDate
implements ComPlainDate
import { type ExtendedPlainDate } from "https://deno.land/x/complaindate@v1.0.1/mod.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.
differenceInDays: (to: ComPlainDate) => number
differenceInBusinessDays: (to: ComPlainDate) => number
differenceInMonths: (to: ComPlainDate) => number
differenceInYears: (to: ComPlainDate) => number