Skip to main content

Class: DurationFormatter

time-utilities/src.DurationFormatter

Constructors

constructor

new DurationFormatter(units?)

Parameters

NameType
units?DurationFormatAssetsTime

Defined in

node_modules/@sapphire/duration/dist/index.d.ts:8

Properties

units

units: DurationFormatAssetsTime

Defined in

node_modules/@sapphire/duration/dist/index.d.ts:7

Methods

format

format(duration, precision?, «destructured»?): string

Parameters

NameType
durationnumber
precision?number
«destructured»DurationFormatSeparators

Returns

string

Defined in

node_modules/@sapphire/duration/dist/index.d.ts:9