Newer Version Available

This content describes an older version of this product. View Latest

getMinutesInDuration()

Returns the number of minutes in a duration.

Signature

getMinutesInDuration(Duration duration)

Parameters

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

Returns

Type: number
The number of minutes in the duration.

Sample Code