Created on 26 September 2019
icon_unfollowing
Login to follow
humanizeduration

HumanizeDuration

Version 0.1.1 (Compatible with OutSystems 11)
Uploaded on 26 September 2019 by 
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..

Release notes (0.1.1)

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

Reviews (0)
Category
User interface, Date, time & calendar
Tags
Support options
This asset is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from  who created this asset.
Dependencies
See all 1 dependencies
Application Objects
HumanizeDuration has 0 AOs.
Team
Compatible with
Version 11
Database:
All
Asset consumers
No consumers yet.
Weekly downloads