purescript-datetime
purescript-datetime copied to clipboard
Some questions regarding durations
-
There is
Data.Time.Duration
and alsoData.Interval.Duration
and I wonder what the difference is.Data.Time.Duration
is used for functions likeadjust
anddiff
, whileData.Interval.Duration
seems to be mostly about parsing and formatting of ISO8601 durations? Is one of them deprecated? Is there a conceptual difference that I fail to see? -
Is there a way to format durations in a human-readable fashion? E.g. neither "643257 milliseconds" nor "0,051 days" but in a multi-unit format like "2 days, 15h, 45min"? (this is probably related to
purescript formatters
, but the calculation might belong to this package) -
I realized that the documentation in Pursuit is not up-to-date (the latest version is 3.2.0). Could somebody please update it?