Closed chshersh closed 6 years ago
Some libraries still use Integer to represent time. It would be nice to have some toNum function so instead of
Integer
toNum
mskDifference :: POSIXTime mskDifference = 10800 -- 3 hours
We could write in more safe way:
mskDifference :: POSIXTime mskDifference = toNum @Second $ hour 3
Current possible solution:
mskDifference :: POSIXTime mskDifference = floor $ toUnit @Second $ hour 3
Dunno is it worth to have such conversion function...
Some libraries still use
Integer
to represent time. It would be nice to have sometoNum
function so instead ofWe could write in more safe way:
Current possible solution:
Dunno is it worth to have such conversion function...