format

open external fun format(duration: ReadonlyRecord<DurationFormatUnit, JsInt>): String(source)

Parameters

duration

The duration object to be formatted. It should include some or all of the following properties: months, weeks, days, hours, minutes, seconds, milliseconds, microseconds, nanoseconds.

MDN Reference.