MCPcopy
hub / github.com/date-fns/date-fns / addQuarters

Function addQuarters

pkgs/core/src/addQuarters/index.ts:33–42  ·  view source on GitHub ↗
(
  date: DateArg<DateType>,
  amount: number,
  options?: AddQuartersOptions<ResultDate> | undefined,
)

Source from the content-addressed store, hash-verified

31 * //=; Mon Dec 01 2014 00:00:00
32 */
33export function addQuarters<
34 DateType extends Date,
35 ResultDate extends Date = DateType,
36>(
37 date: DateArg<DateType>,
38 amount: number,
39 options?: AddQuartersOptions<ResultDate> | undefined,
40): ResultDate {
41 return addMonths(date, amount * 3, options);
42}

Callers 3

eachQuarterOfIntervalFunction · 0.90
test.tsFile · 0.90
subQuartersFunction · 0.90

Calls 1

addMonthsFunction · 0.90

Tested by

no test coverage detected