Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

FormatDurationOptions

import type { FormatDurationOptions } from "https://esm.sh/v135/date-fns@3.6.0/index.d.mts";

The formatDuration function options.

interface FormatDurationOptions extends LocalizedOptions<"formatDistance"> {
delimiter?: string;
format?: DurationUnit[];
zero?: boolean;
}

§Extends

§
LocalizedOptions<"formatDistance">
[src]

§Properties

§
delimiter?: string
[src]

The delimiter string to use

§

The array of units to format

§
zero?: boolean
[src]

Should be zeros be included in the output?