Skip to content

@eightkk/vue-weave / core / IntlTimeFormatterOptions

Interface: IntlTimeFormatterOptions ​

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

Properties ​

format? ​

optional format?: DateTimeFormatOptions

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

Intl.DateTimeFormat options. Default { hour: '2-digit', minute: '2-digit', hourCycle: 'h23' } (09:00). Its timeZone is ignored; use the timeZone option.


locale? ​

optional locale?: string | readonly string[]

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

BCP 47 locale (or list). Default en-US. The runtime's default locale is never used, so server and client render the same text for the same locale, time zone and options.


timeZone? ​

optional timeZone?: string

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

IANA time zone such as Europe/Berlin. Default UTC. Cannot be combined with utcOffsetMinutes.


utcOffsetMinutes? ​

optional utcOffsetMinutes?: number

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

Fixed offset from UTC in minutes, without daylight-saving rules. Cannot be combined with timeZone. A timeZoneName in format then reads as UTC, because the shifted time is formatted in UTC.

Released under the MIT License.