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