(seconds)
| 31 | * @package |
| 32 | */ |
| 33 | export function secondsToTimestampString(seconds) { |
| 34 | const h = Math.floor(seconds / 3600); |
| 35 | const m = Math.floor(seconds / 60); |
| 36 | const s = Math.floor(seconds % 60); |
| 37 | const hh = padStart(h.toString(), 2, '0'); |
| 38 | const mm = padStart(m.toString(), 2, '0'); |
| 39 | const ss = padStart(s.toString(), 2, '0'); |
| 40 | return hh + ':' + mm + ':' + ss; |
| 41 | } |
no test coverage detected