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

eachQuarterOfInterval

import { eachQuarterOfInterval } from "https://esm.sh/v135/date-fns@3.6.0/index.d.mts";
@example
// Each quarter within interval 6 February 2014 - 10 August 2014:
const result = eachQuarterOfInterval({
  start: new Date(2014, 1, 6),
  end: new Date(2014, 7, 10)
})
//=> [
//   Wed Jan 01 2014 00:00:00,
//   Tue Apr 01 2014 00:00:00,
//   Tue Jul 01 2014 00:00:00,
// ]
function eachQuarterOfInterval<DateType extends Date>(interval: Interval<DateType>, options?: EachQuarterOfIntervalOptions): DateType[];
§
eachQuarterOfInterval<DateType extends Date>(interval: Interval<DateType>, options?: EachQuarterOfIntervalOptions): DateType[]
[src]

§Type Parameters

§
DateType extends Date
[src]

§Parameters

§
interval: Interval<DateType>
[src]
  • The interval

§Return Type

§
DateType[]
[src]

The array with starts of quarters from the quarter of the interval start to the quarter of the interval end