Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Interval

import type { Interval } from "https://esm.sh/v135/date-fns@3.6.0/index.d.mts";

An object that combines two dates to represent the time interval.

interface Interval <DateType extends Date = Date> {
end: DateType | number | string;
start: DateType | number | string;
}

§Type Parameters

§
DateType extends Date = Date
[src]

§Properties

§
end: DateType | number | string
[src]

The end of the interval.

§
start: DateType | number | string
[src]

The start of the interval.