humanizeduration

HumanizeDuration

version 0.1.1 (Compatible with OutSystems 11)
Published on 26 September 2019 by 
0.0
 (0 ratings)
humanizeduration

HumanizeDuration

Details
Library to convert a duration in miliseconds to a more human readable form.
Read more

Wrapper for the HumanizeDuration library (https://github.com/EvanHahn/HumanizeDuration.js).

Is it possible to configure:

  • Language (default: english): 
    (3000, { language: 'pt' })  // '3 segundos'
  • Delimiter (default: ' '):
    (22140000, { delimiter: ' and ' }) // '6 hours and 9 minutes'
  • Spacer (default: ' '): 
    (260040000, { spacer: ' whole ' })  // '3 whole days, 14 whole minutes'
  • Round (default: false): 
    humanizeDuration(1200, { round: true })  // '1 second' instead of '1,2 seconds'

and many more..

What’s new (0.1.1)

It's now possible to use the component more than once in a page.

Reviews (0)