Changing the ms library by this https://github.com/gae-labs/betterMsJs/ fixes some ms problems, like
- round
- lots of new ways to write times (
betterMs('2 days 6 hours 30 minutes 15 seconds') )
- maybe the possibility of remove human-interval because it looks like it can do the same
I get to this because I try to parse milliseconds to human with ms https://github.com/vercel/ms?tab=readme-ov-file#convert-from-milliseconds and the human-interval date of 3 days and 4 hours (which human-interval correctly sets to 273600000 was rounded to 3 days)
Changing the
mslibrary by this https://github.com/gae-labs/betterMsJs/ fixes somemsproblems, likebetterMs('2 days 6 hours 30 minutes 15 seconds'))I get to this because I try to parse milliseconds to human with
mshttps://github.com/vercel/ms?tab=readme-ov-file#convert-from-milliseconds and thehuman-intervaldate of3 days and 4 hours(whichhuman-intervalcorrectly sets to273600000was rounded to3 days)