File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Codewars/Human readable duration format Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,12 +7,12 @@ The function must accept a non-negative integer. If it is zero, it just returns
7
7
` years ` , ` days ` , ` hours ` , ` minutes ` and ` seconds ` .
8
8
9
9
It is much easier to understand with an example:
10
- ```
10
+ < pre >
11
11
* For seconds = 62, your function should return
12
12
"1 minute and 2 seconds"
13
13
* For seconds = 3662, your function should return
14
14
"1 hour, 1 minute and 2 seconds"
15
- ```
15
+ </ pre >
16
16
17
17
** For the purpose of this Kata, a year is 365 days and a day is 24 hours.**
18
18
@@ -33,4 +33,4 @@ Different components have different unit of times. So there is not repeated unit
33
33
A component will not appear at all if its value happens to be zero. Hence, ` 1 minute and 0 seconds ` is not valid, but it should be just ` 1 minute ` .
34
34
35
35
A unit of time must be used "as much as possible". It means that the function should not return ` 61 seconds ` , but ` 1 minute and 1 second ` instead.
36
- Formally, the duration specified by of a component must not be greater than any valid more significant unit of time.
36
+ Formally, the duration specified by of a component must not be greater than any valid more significant unit of time.
132C
You can’t perform that action at this time.
0 commit comments