EvanHahn / HumanizeDuration.js

361000 becomes "6 minutes, 1 second"
https://evanhahn.github.io/HumanizeDuration.js/
The Unlicense
1.64k stars 175 forks source link

Remove months and years from default `units` #177

Closed EvanHahn closed 4 years ago

EvanHahn commented 4 years ago

Currently, the units option defaults to including months and years.

This line:

https://github.com/EvanHahn/HumanizeDuration.js/blob/6029e9807718a7da2cbb1f859b3e7e0f94049069/humanize-duration.js#L1003

Should be changed to ["w", "d", "h", "m", "s"].

This pull request should be made against the v4.0.0 branch, which you can see in #176.

EvanHahn commented 4 years ago

Closed in 1389b4a9f513c113225760489195677104a7eea8.