kyu_5.human_readable_time package

Submodules

kyu_5.human_readable_time.make_readable module

kyu_5.human_readable_time.make_readable.make_readable(seconds: int) → str[source]

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)

Parameters

seconds

Returns

kyu_5.human_readable_time.test_make_readable module

class kyu_5.human_readable_time.test_make_readable.MakeReadableTestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

Testing make_readable function

test_make_readable()[source]

Testing make_readable function

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) :return:

Module contents