audible-api
Version:
A Node.js API for searching the audible website
16 lines • 690 B
TypeScript
/** The number of milliseconds in 1 second */
export declare const MILLISECONDS_IN_SECOND = 1000;
/** The number of seconds in 1 minute */
export declare const SECONDS_IN_MINUTE = 60;
/** The number of minutes in 1 hour */
export declare const MINUTES_IN_HOUR = 60;
/** The number of seconds in 1 hour */
export declare const SECONDS_IN_HOUR: number;
/**
* Get a book's total runtime duration in seconds from it's formatted string
*
* @param {string} runtimeStr A string in the format of `N hrs and N mins` to parse
* @returns {number} The total number of seconds in the book
*/
export declare function getDurationFromStr(runtimeStr: string): number;
//# sourceMappingURL=time.d.ts.map