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: | Line 1,163: | ||
<lang Phix>function elapzd(integer v, string d) |
<lang Phix>function elapzd(integer v, string d) |
||
-- private helper function. formats v and pluralises d by adding an "s", or not. |
-- private helper function. formats v and pluralises d by adding an "s", or not. |
||
⚫ | |||
if v=1 then |
|||
return sprintf("%d %s",{v,d}) |
|||
end if |
|||
⚫ | |||
end function |
end function |
||