UNPKG

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