- Preparing search index...
- The search index is not available
duration
- format(ms: number, options?: { decimal?: number; long?: boolean; separator?: string }): undefined | string
-
Parameters
-
ms: number
-
options: { decimal?: number; long?: boolean; separator?: string } = {}
-
Optional
decimal?: number
-
Optional
long?: boolean
-
Optional
separator?: string
Returns undefined | string
Formats the millisecond count to a human-readable time string.
Returns
the duration in human readable form