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

Locale

The locale object with all functions and data needed to parse and format dates. This is what each locale implements and exports.

interface Locale {
code: string;
formatDistance: FormatDistanceFn;
formatLong: FormatLong;
formatRelative: FormatRelativeFn;
localize: Localize;
match: Match;
options?: LocaleOptions;
}

§Properties

§
code: string
[src]

The locale code (ISO 639-1 + optional country code)

§
formatDistance: FormatDistanceFn
[src]

The function to format distance

§
formatLong: FormatLong
[src]

The object with functions that return localized formats

§
formatRelative: FormatRelativeFn
[src]

The function to relative time

§
localize: Localize
[src]

The object with functions used to localize various values

§
match: Match
[src]

The object with functions used to match and parse various localized values

§

An object with locale options