Convert seconds to compound duration: Difference between revisions
Convert seconds to compound duration (view source)
Revision as of 18:00, 16 March 2020
, 4 years ago→{{header|Haskell}}: Flipped the type of one function.
(→{{header|Factor}}: factor out some repetition, style tweaks) |
m (→{{header|Haskell}}: Flipped the type of one function.) |
||
Line 1,774:
translation :: Int -> String -> String
translation n local =
intercalate " -> " $ [show,
timePhrase ::
timePhrase
timeTags :: (Int, String) -> [String] -> [String]
timeTags (n, s) xs
|
| otherwise = xs
Line 1,788:
byUnits :: Int -> Int -> (Int, Int)
byUnits rest x = (quot (rest - m) u, m)
where
| 0
main :: IO ()
main =
|