Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/fmt/duration.ts>format

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function format
import { format } from "https://deno.land/std@0.208.0/fmt/duration.ts";

Parameters

ms: number
optional
options: Partial<PrettyDurationOptions> = [UNSUPPORTED]

Returns

string