Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data DurationData = DurationData {}
- withGrain :: Grain -> DurationData -> DurationData
Documentation
data DurationData Source #
Instances
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.