getHoursInDuration()

Returns a length of time in hours.

getHoursInDuration(Duration duration)

duration: Type: Duration. The duration object returned by $A.localizationService.duration.

Type: number The number of hours in the duration.

See Also