Skip to content

@eightkk/vue-weave / core / intlTimeFormatter

Function: intlTimeFormatter() ​

intlTimeFormatter(options?): (time) => string

Defined in: src/core/calendarFormat.ts:54

A formatTime-compatible function based on a cached Intl.DateTimeFormat. The output depends only on the time and the options (and the runtime's Intl data), never on the runtime's default locale or time zone, so it is safe for server rendering. Throws RangeError for an invalid time zone, offset, locale or non-finite time.

Parameters ​

options? ​

IntlTimeFormatterOptions = {}

Returns ​

(time) => string

Released under the MIT License.