displayDuration()

Displays a length of time.

displayDuration (Duration duration, boolean withSuffix)

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.

Type: String The length of time.

See Also