Class: DurationFormatter
@sapphire/time-utilities.DurationFormatter
Display the duration
Param
The duration in milliseconds to parse and display
Param
The language assets
Constructors
constructor
• new DurationFormatter(units?
)
Parameters
Name | Type |
---|---|
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
Name | Type |
---|---|
duration | number |
precision? | number |
«destructured» | DurationFormatSeparators |
Returns
string
Defined in
node_modules/@sapphire/duration/dist/index.d.ts:9