UNPKG

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