UNPKG

666 BTypeScriptView Raw
1/**
2 * @name quartersToMonths
3 * @category Conversion Helpers
4 * @summary Convert number of quarters to months.
5 *
6 * @description
7 * Convert a number of quarters to a full number of months.
8 *
9 * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
10 *
11 * @param quarters - The number of quarters to be converted
12 *
13 * @returns The number of quarters converted in months
14 *
15 * @example
16 * // Convert 2 quarters to months
17 * const result = quartersToMonths(2)
18 * //=> 6
19 */
20export declare function quartersToMonths(quarters: number): number;