This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Parses a human readable duration on the form | |
* and return the total duration in seconds. | |
* | |
* @param {string} - Timestamp on the form XhYmZs. Unit | |
* parts are optional: 3h2s, 3m1s, 4h2m | |
* are all valid. | |
*/ | |
function parseTimestamp(timestamp) { |