Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 467 Bytes

(5 kyu) Human Readable Time.md

File metadata and controls

15 lines (10 loc) · 467 Bytes

Human Readable Time (5 kyu)

https://www.codewars.com/kata/human-readable-time

Write a function, which takes a non-negative integer (seconds) as input and returns the time in a human-readable format (HH:MM:SS)

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

The maximum time never exceeds 359999 (99:59:59)

You can find some examples in the test fixtures.