Class: DurationFormatter
Display the duration
Param
The duration in milliseconds to parse and display
Param
The language assets
Constructors
new DurationFormatter()
new DurationFormatter(
units
:DurationFormatAssetsTime
):DurationFormatter
Parameters
Parameter | Type | Default value |
---|---|---|
units | DurationFormatAssetsTime | DEFAULT_UNITS |
Returns
Defined in
Properties
units
units:
DurationFormatAssetsTime
=DEFAULT_UNITS
Defined in
Methods
format()
format(
duration
:number
,precision
:number
,__namedParameters
:DurationFormatSeparators
):string
Parameters
Parameter | Type | Default value |
---|---|---|
duration | number | undefined |
precision | number | 7 |
__namedParameters | DurationFormatSeparators | DEFAULT_SEPARATORS |
Returns
string