Newer Version Available
displayDuration()
Signature
displayDuration (Duration duration, boolean withSuffix)
Parameters
- duration
- Type: Duration
- The duration object returned by $A.localizationService.duration.
- withSuffix
- Type: boolean
- If true, returns value with a suffix matching the unit of the duration parameter.
Returns
- Type: String
- The length of time.