Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Documentation
fsec_to_minsec :: FSEC -> MINSEC Source
Fractional seconds to (min,sec)
.
map fsec_to_minsec [59.49,60,60.51] == [(0,59),(1,0),(1,1)]
minsec_pp :: MINSEC -> String Source
MINSEC
pretty printer.
map (minsec_pp . fsec_to_minsec) [59,61] == ["00:59","01:01"]
fsec_to_mincsec :: FSEC -> MINCSEC Source
Fractional seconds to (min,sec,csec)
.
map fsec_to_mincsec [1,1.5,4/3] == [(0,1,0),(0,1,50),(0,1,33)]
mincsec_pp :: MINCSEC -> String Source
MINCSEC
pretty printer.
map (mincsec_pp . fsec_to_mincsec) [1,4/3] == ["00:01.00","00:01.33"]