1 | import type { ContextOptions, DateArg } from "./types.js";
|
2 | /**
|
3 | * The {@link isThisQuarter} function options.
|
4 | */
|
5 | export interface IsThisQuarterOptions extends ContextOptions<Date> {}
|
6 | /**
|
7 | * @name isThisQuarter
|
8 | * @category Quarter Helpers
|
9 | * @summary Is the given date in the same quarter as the current date?
|
10 | * @pure false
|
11 | *
|
12 | * @description
|
13 | * Is the given date in the same quarter as the current date?
|
14 | *
|
15 | * @param date - The date to check
|
16 | * @param options - An object with options
|
17 | *
|
18 | * @returns The date is in this quarter
|
19 | *
|
20 | * @example
|
21 | * // If today is 25 September 2014, is 2 July 2014 in this quarter?
|
22 | * const result = isThisQuarter(new Date(2014, 6, 2))
|
23 | * //=> true
|
24 | */
|
25 | export declare function isThisQuarter(
|
26 | date: DateArg<Date> & {},
|
27 | options?: IsThisQuarterOptions,
|
28 | ): boolean;
|