1 | import type { ContextOptions, DateArg } from "./types.js";
|
2 | /**
|
3 | * The {@link differenceInCalendarQuarters} function options.
|
4 | */
|
5 | export interface DifferenceInCalendarQuartersOptions
|
6 | extends ContextOptions<Date> {}
|
7 | /**
|
8 | * @name differenceInCalendarQuarters
|
9 | * @category Quarter Helpers
|
10 | * @summary Get the number of calendar quarters between the given dates.
|
11 | *
|
12 | * @description
|
13 | * Get the number of calendar quarters between the given dates.
|
14 | *
|
15 | * @param laterDate - The later date
|
16 | * @param earlierDate - The earlier date
|
17 | * @param options - An object with options
|
18 | *
|
19 | * @returns The number of calendar quarters
|
20 | *
|
21 | * @example
|
22 | * // How many calendar quarters are between 31 December 2013 and 2 July 2014?
|
23 | * const result = differenceInCalendarQuarters(
|
24 | * new Date(2014, 6, 2),
|
25 | * new Date(2013, 11, 31)
|
26 | * )
|
27 | * //=> 3
|
28 | */
|
29 | export declare function differenceInCalendarQuarters(
|
30 | laterDate: DateArg<Date> & {},
|
31 | earlierDate: DateArg<Date> & {},
|
32 | options?: DifferenceInCalendarQuartersOptions | undefined,
|
33 | ): number;
|