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.6/time.ts";

Convert time duration to a human readable string: 5d1h20m30s

  • milliseconds The number to format, unit milliseconds

Parameters

milliseconds: number
optional
options: prettyTimeOptions = [UNSUPPORTED]

Returns

string