Convert seconds to compound duration: Difference between revisions
Content added Content deleted
m (→{{header|Phix}}: (used iff a bit more)) |
m (→{{header|Phix}}: another iff) |
||
Line 1,163:
<lang Phix>function elapzd(integer v, string d)
-- private helper function. formats v and pluralises d by adding an "s", or not.
▲ return sprintf("%d %ss",{v,d})
end function
|