UNPKG

570 BTypeScriptView Raw
1export interface Time {
2 hours: number;
3 minutes: number;
4 seconds: number;
5}
6/**
7 * Converts the given time to seconds in positive numerical format.
8 * @param time - Time to convert.
9 * @returns number Time in seconds.
10 */
11export declare function timeToSeconds(time: Time): number;
12/**
13 * Converts from seconds to time as [[Time]].
14 * @param n - Number of seconds to convert (should be positive).
15 * @returns Time The converted time from the given number of seconds
16 */
17export declare function secondsToTime(n: number): Time;
18//# sourceMappingURL=time.d.ts.map
\No newline at end of file