Skip to main content

Class: DurationFormatter

duration/src.DurationFormatter

Constructors

constructor

new DurationFormatter(units?)

Parameters

NameTypeDefault value
unitsDurationFormatAssetsTimeDEFAULT_UNITS

Defined in

projects/utilities/packages/duration/src/lib/DurationFormatter.ts:23

Properties

units

units: DurationFormatAssetsTime = DEFAULT_UNITS

Methods

format

format(duration, precision?, __namedParameters?): string

Parameters

NameTypeDefault value
durationnumberundefined
precisionnumber7
__namedParametersDurationFormatSeparatorsDEFAULT_SEPARATORS

Returns

string

Defined in

projects/utilities/packages/duration/src/lib/DurationFormatter.ts:25