Convert seconds to compound duration: Difference between revisions

m
Line 186:
{{Trans|JavaScript}}
 
<lang AppleScript>on run
on run
intercalate(linefeed, ¬
map(test, ¬
Line 199 ⟶ 198:
 
 
 
-- DURATION STRINGS
 
-- angloDuration :: Int -> String
Line 205 ⟶ 206:
on formatted(a, lstPair)
set q to item 1 of lstPair
if q > 0 then
{(q as string) & space & item 2 of lstPair} & a
Line 224:
on weekParts(intSeconds)
script mf
-- partList Record -> Int -> Int -> Record
on partList(a, x, i)
set intRest to remaining of a
9,659

edits