Intervals
Intervals
This seems to be used mainly with formatters. Come back later after some tests.
Interval
RecurringInterval
Duration
Data.Interval.Duration shouldn’t be confused with the Data.Time.Duration type class.
This Duration
is a map from DurationComponent to the respective amount.
newtype Duration = Duration (Map DurationComponent Number)
The module exposes a series of helper functions to build a Duration
easily:
year :: Number -> Duration
month :: Number -> Duration
week :: Number -> Duration
day :: Number -> Duration
hour :: Number -> Duration
minute :: Number -> Duration
second :: Number -> Duration
millisecond :: Number -> Duration
DurationComponent
Data.Interval.DurationComponent is a sum type whose constructors represent a type of duration. Not to be confused with the newtypes in Durations.
data DurationComponent = Second | Minute | Hour | Day | Week | Month | Year
IsoDuration
TODO