Safe Haskell | None |
---|---|
Language | Haskell2010 |
- newtype Offset = Offset {
- offsetMilli :: Milli
- offsetMillis :: Offset -> Integer
- diffTimeOffset :: DiffTime -> Offset
- offsetDiffTime :: Offset -> DiffTime
Documentation
Eq Offset Source # | |
Fractional Offset Source # | |
Num Offset Source # | |
Ord Offset Source # | |
Read Offset Source # | Read Offset from a colon delimited time string |
Real Offset Source # | |
RealFrac Offset Source # | |
Show Offset Source # | Display Offset using colon delimited time format |
ToJSON Offset Source # | Format offset value for inclusion in a JSON object. Use the millisecond integer representation |
FromJSON Offset Source # | Extract from JSON value. Accept integer milliseconds, time colon formatted string, or false (0) |
PGParameter "interval" Offset Source # | |
PGColumn "interval" Offset Source # | |
Parameter Text Offset Source # | |
Deform f Offset Source # | |
offsetMillis :: Offset -> Integer Source #
Get the underlying fixed integer, before scaling to the appropriate decimal
diffTimeOffset :: DiffTime -> Offset Source #
offsetDiffTime :: Offset -> DiffTime Source #