Home > AI > Language > Javascript >

turn seconds into HH-MM-SS format

Code:

turnSecondsFormat(seconds) {
        return new Date(seconds * 1000).toISOString().substr(11, 8)
    }

Leave a Reply