title
Write a function, which takes a non-negative integer (seconds) as input and returns the time in a human-readable format (HH:MM:SS)
example
1 | Test.assertEquals(humanReadable(0), '00:00:00', 'humanReadable(0)'); |
Notes:
- HH = hours, padded to 2 digits, range: 00 - 99
- MM = minutes, padded to 2 digits, range: 00 - 59
- SS = seconds, padded to 2 digits, range: 00 - 59
My solution
1 | function humanReadable(seconds) { |
good solution
1 | //one |