HumanizeDuration

Version 0.1.1 (OutSystems 11)
Published on 26 Sep (4 weeks ago) by 
Created on 26 Sep (4 weeks ago)
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)
Category
Components, Libraries, UI & Widgets
Tags
Support Options
This component is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from António Pereira who created this component.
Dependencies
See all 1 dependencies
Requirements
Platform:
11.0.0.200
Database:
All
Stack:
.NET
Component Consumers
No consumers yet.
Weekly Downloads