EvanHahn / HumanizeDuration.js

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

Include commas in large numbers #213

Closed TabithaMaudMM closed 1 year ago

TabithaMaudMM commented 1 year ago

Hey there, is there a way to include commas (toLocaleString()) for large numbers

I have something I need to show always in hours but getting 12000h when ideally it would be 12,000h

EvanHahn commented 1 year ago

This isn't possible, unfortunately. You might be able to build your own version with parse-ms as a starting point.

I don't plan to add new features to this module but if you (or anyone else!) wants to implement it, I'm happy to recommend a fork in the readme.