Musique/node_modules/m3u8stream/dist/parse-time.d.ts
2021-12-04 20:00:33 +01:00

16 lines
510 B
TypeScript

/**
* Converts human friendly time to milliseconds. Supports the format
* 00:00:00.000 for hours, minutes, seconds, and milliseconds respectively.
* And 0ms, 0s, 0m, 0h, and together 1m1s.
*
* @param {number|string} time
* @returns {number}
*/
export declare const humanStr: (time: number | string) => number;
/**
* Parses a duration string in the form of "123.456S", returns milliseconds.
*
* @param {string} time
* @returns {number}
*/
export declare const durationStr: (time: string) => number;