Closed chshersh closed 3 years ago
Seems relevant:
There's diffF
already but I agree that we should have something like this.
Though obviously baking-in 8 hour days won't be good
Maybe we can indeed use the o-clock idea with series. I think that instead of type-level lists we can just have a list of predefined (Builder, Int)
pairs. @ChShersh what do you think?
@neongreen Well, since there's o-clock
I don't actually need durationF
formatter anymore. seriesF
is enough to me. I won't use this formatter on something that doesn't represent time. And if I need time I probably will use o-clock
. seriesF
is already a good reason for me to use package like o-clock
. Though, o-clock
probably should have Buildable
instance but at this moment it's not clear for me which exact Buildable
should it use...
It looks like we don't need this — please feel free to reopen if you disagree.
I would really appreciate some formatter for ranges like
1w2d3h4m
like this one:But I would like to have an ability to easily interpret
9623
as9623 minutes
or9623 seconds
and format in either160h23m
or160m23s
. Dunno how the resulting interface should look like...