EvanHahn / HumanizeDuration.js

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

Example to measure with seconds given as input #136

Closed TGM closed 6 years ago

TGM commented 6 years ago

Hello,

Can you update the manual with an example of how to measure the time with seconds given as input?

EvanHahn commented 6 years ago

Do you mean something like this?

const myTimeInSeconds = 123;
humanizeDuration(myTimeInSeconds * 1000);

Or something else?

EvanHahn commented 6 years ago

@TGM I'm going to close this issue because I haven't heard back, but let me know if you have more questions!