GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

Search e01

One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.

3 results across 6 corpora for Intl.DurationFormat.prototype.formatToParts().

Dictionary 0

Papers 0

Wikidata 0

Developer library 3

Intl.DurationFormat

The **`Intl.DurationFormat`** object enables language-sensitive duration formatting. ## Constructor - Intl.DurationFormat() - : Creates a new `Intl.DurationFormat` object. ## Static methods - Intl.DurationFormat.supportedLocalesOf() - : Returns an array containing those of the provided locales that are supported without having to fall back to the runtime's default locale. ## Instance properties These proper

Intl.DurationFormat.prototype.formatToParts()

The **`formatToParts()`** method of Intl.DurationFormat instances returns an array of objects representing each part of the formatted string that would be returned by format(). It is useful for building custom strings from the locale-specific tokens. ## Syntax ```js-nolint formatToParts(duration) ``` ### Parameters - `duration` - : The duration object to be formatted. It should include some or all of the follow

Internationalization

nalities: - [Getting information about a locale](#locale_information) using Intl.Locale. - [Formatting data](#formatting_data) using Intl.DateTimeFormat, Intl.DurationFormat, Intl.ListFormat, Intl.NumberFormat, and Intl.RelativeTimeFormat. - [Collation](#collation) (i.e., comparing strings for sorting or searching) using Intl.Collator. - [Selecting plural forms](#plural_rules) using Intl.PluralRules. - [Segmenting t

JSON results · Services directory