UNPKG

517 BTypeScriptView Raw
1/**
2 * @name daysToWeeks
3 * @category Conversion Helpers
4 * @summary Convert days to weeks.
5 *
6 * @description
7 * Convert a number of days to a full number of weeks.
8 *
9 * @param days - The number of days to be converted
10 *
11 * @returns The number of days converted in weeks
12 *
13 * @example
14 * // Convert 14 days to weeks:
15 * const result = daysToWeeks(14)
16 * //=> 2
17 *
18 * @example
19 * // It uses trunc rounding:
20 * const result = daysToWeeks(13)
21 * //=> 1
22 */
23export declare function daysToWeeks(days: number): number;