You-Dont-Need-Momentjs
You-Dont-Need-Momentjs copied to clipboard
Feature Parity is missing durations
Durations are a standardized format and should be included.
- momentjs supports.
- date-fns does not officially, but there is a user-contributed workaround
- dayjs does not support
- luxon supports
Durations have three main function:
- type used to describe a duration to be summed without a date
- parser (example, parse HH:MM:DD)
- Display (ex. human readable display such as 32m 12s)
Alternatives to all:
I needed the parser, i've used this solution: Stackoverflow solution
About the display solution: humanize-duration on npm
@FoxxMD @Goostavo please send a PR