Convert seconds to compound duration: Difference between revisions
Convert seconds to compound duration (view source)
Revision as of 21:55, 8 September 2023
, 9 months ago→{{header|EasyLang}}
Line 1,555:
=={{header|EasyLang}}==
<syntaxhighlight lang="text">
divs[] = [ 60 60 24 7 ]
n$[] = [ "sec" "min" "hr" "d" "wk" ]
Line 1,564:
.
r[5] = sec
for i = 5 downto 1
if r[i] <> 0
Line 1,573 ⟶ 1,572:
.
.
return s$
.
print split 7259
print
▲split 6000000 s$
</syntaxhighlight>
|