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

FormatDistanceOptions

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

The formatDistance function options.

interface FormatDistanceOptions extends LocalizedOptions<"formatDistance"> {
addSuffix?: boolean;
includeSeconds?: boolean;
}

§Extends

§
LocalizedOptions<"formatDistance">
[src]

§Properties

§
addSuffix?: boolean
[src]

Add "X ago"/"in X" in the locale language

§
includeSeconds?: boolean
[src]

Distances less than a minute are more detailed