typedef DateTimeFormatOptions
package js.lib.intl
import js.lib.intl.DateTimeFormat
Available on js
Fields
optionaltimeZone:Null<String>
The time zone to use. The only value implementations must recognize is "UTC"
;
the default is the runtime's default time zone. Implementations may also recognize
the time zone names of the IANA time zone database,
such as "Asia/Shanghai"
, "Asia/Kolkata"
, "America/New_York"
.
optionallocaleMatcher:Null<LocaleMatcher>
The locale matching algorithm to use.
The default is BestFit
.
optionalhourCycle:Null<HourCycle>
The hour cycle to use. This option overrides the hc
language tag, if both are present,
and the Hour12
option takes precedence in case both options have been specified.
optionalhour12:Null<Bool>
Whether to use 12-hour time (as opposed to 24-hour time).
The default is locale dependent.
This option overrides the hc language tag and/or the hourCycle
option in case both are present.
optionalformatMatcher:Null<FormatMatcher>
The format matching algorithm to use.
The default is BestFit
.
See the following paragraphs for information about the use of this property.