W3cubDocs

/Haxe JavaScript

DateTimeFormatOptions

package js.lib.intl

import js.lib.intl.DateTimeFormat

Available on js

Fields

optionalyear:Null<YearRepresentation>

The representation of the year.

optionalweekday:Null<WeekdayRepresentation>

The representation of the weekday.

optionaltimeZoneName:Null<TimeZoneName>

The representation of the time zone name.

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".

optionalsecond:Null<SecondRepresentation>

The representation of the second.

optionalmonth:Null<MonthRepresentation>

The representation of the month.

optionalminute:Null<MinuteRepresentation>

The representation of the minute.

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.

optionalhour:Null<HourRepresentation>

The representation of the hour.

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.

optionalera:Null<EraRepresentation>

The representation of the era.

optionalday:Null<DayRepresentation>

The representation of the day.

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/lib/intl/DateTimeFormatOptions.html