UNPKG

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