Convert seconds to compound duration: Difference between revisions
Convert seconds to compound duration (view source)
Revision as of 23:57, 5 September 2020
, 3 years ago→{{header|Haskell}}: Adjusted a pair of bound names.
(→{{header|Haskell}}: Parameterised both local names and assumptions about hours per day, days per week.) |
m (→{{header|Haskell}}: Adjusted a pair of bound names.) |
||
Line 1,786:
----------------- COMPOUND DURATION STRINGS ----------------
intercalate " -> " $
[show,
intercalate
", "
Line 1,819:
let tests = [7259, 86400, 6000000]
putStrLn "Assuming 24
mapM_ (putStrLn .
putStrLn "\nor, at 8
mapM_ (putStrLn .
{{Out}}
<pre>Assuming 24/7:
|