Jump to content

Convert seconds to compound duration: Difference between revisions

m
Line 1,301:
 
=={{header|EasyLang}}==
<lang>intvarsfunc split sec . s$ .
divdivs[] = [ 60 60 24 7 ]
func split sec . s$ .
div[] = [ 60 60 24 7 ]
n$[] = [ "sec" "min" "hr" "d" "wk" ]
len r[] 5
for i range 4
r[i] = sec mod divdivs[i]
sec = sec / div divs[i]
.
r[4] = sec
2,042

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.