UNPKG

432 BTypeScriptView Raw
1/**
2 * @name yearsToDays
3 * @category Conversion Helpers
4 * @summary Convert years to days.
5 *
6 * @description
7 * Convert a number of years to a full number of days.
8 *
9 * @param years - The number of years to be converted
10 *
11 * @returns The number of years converted in days
12 *
13 * @example
14 * // Convert 2 years into days
15 * const result = yearsToDays(2)
16 * //=> 730
17 */
18export declare function yearsToDays(years: number): number;