Skip to main content
Module

x/progress/time.ts>prettyTime

ProgressBar in terminal for deno
Go to Latest
function prettyTime
import { prettyTime } from "https://deno.land/x/progress@v1.3.4/time.ts";

Convert time duration to a human readable string: 5d1h20m30s

Parameters

milliseconds: number

The number to format, unit milliseconds

optional
options: prettyTimeOptions = [UNSUPPORTED]

Returns

string