Skip to main content
Module

x/durationjs/mod.ts>Duration#toShortString

Get the formated time duration
Go to Latest
method Duration.prototype.toShortString
import { Duration } from "https://deno.land/x/durationjs@v4.1.0/mod.ts";

Get a formatted, human-readable string of the duration.

Parameters

optional
values: string[] | null = [UNSUPPORTED]

The values required to display.

Returns

string

formatted string The formatted string result.