UNPKG

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