Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/progress/time.ts>prettyTime

ProgressBar in terminal for deno
Latest
function prettyTime
import { prettyTime } from "https://deno.land/x/progress@v1.4.9/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