Daniel Levett
Daniel Levett
Hey, I actually tried to build the API exactly like this originally! I got a bit of a headache while thinking about the more fuzzy units, like `toMonths()`: ```js duration.toDays({...
Nice! Thanks for sharing those. I like the approaches here and can see how a lot of these ideas can fit into this library. I'd happily have another go at...
> I've also added the options for users to create unit multiples, for things like fortnights and quarters if you feel as though that's in scope of the library. I'm...
I'm open to the idea. Can definitely see some value in it. I'm a bit swamped at the moment, so it probably makes more sense to roll your own, or...
Hi! You're right, it's a normalization thing. This is [covered in the docs as expected behaviour](https://github.com/dlevs/duration-fns?tab=readme-ov-file#normalization). Units like "month" are ambiguous. It's impossible to know if you wanted to count...