Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data DurationData = DurationData {}
- withGrain :: Grain -> DurationData -> DurationData
Documentation
data DurationData Source #
withGrain :: Grain -> DurationData -> DurationData Source #
Convert a duration to the given grain, rounded to the nearest integer. For example, 1 month is converted to 4 weeks.