Interface: DateTimeFormatOptions

Highcharts. DateTimeFormatOptions

Options for formatting dates and times using the Intl.DateTimeFormat API, and extended with some custom options for Highcharts.

Members

day :'numeric'|'2-digit'|undefined

The representation of the day.

Type:
  • 'numeric' | '2-digit' | undefined

era :'narrow'|'short'|'long'|undefined

The representation of the era.

Type:
  • 'narrow' | 'short' | 'long' | undefined

formatMatcher :string|undefined

The format matching algorithm to use.

Type:
  • string | undefined

fractionalSecondDigits :number|undefined

The number of fractional digits to use. 3 means milliseconds.

Type:
  • number | undefined

hour :'numeric'|'2-digit'|undefined

The representation of the hour.

Type:
  • 'numeric' | '2-digit' | undefined

hour12 :'auto'|'always'|'never'|undefined

Whether to use 12-hour time (as opposed to 24-hour time).

Type:
  • 'auto' | 'always' | 'never' | undefined

localeMatcher :string|undefined

The locale matching algorithm to use.

Type:
  • string | undefined

minute :'numeric'|'2-digit'|undefined

The representation of the minute.

Type:
  • 'numeric' | '2-digit' | undefined

month :'numeric'|'2-digit'|'narrow'|'short'|'long'|undefined

The representation of the month. "narrow", "short", "long".

Type:
  • 'numeric' | '2-digit' | 'narrow' | 'short' | 'long' | undefined

prefix :'string'|undefined

A prefix for the time string. Custom Highcharts option.

Type:
  • 'string' | undefined

second :'numeric'|'2-digit'|undefined

The representation of the second.

Type:
  • 'numeric' | '2-digit' | undefined

suffix :'string'|undefined

A suffix for the time string. Custom Highcharts option.

Type:
  • 'string' | undefined

timeZone :string|undefined

The time zone to use. The default is the browser's default time zone.

Type:
  • string | undefined

timeZoneName :'short'|'long'|undefined

The representation of the time zone name.

Type:
  • 'short' | 'long' | undefined

weekday :'narrow'|'short'|'long'|undefined

The representation of the weekday.

Type:
  • 'narrow' | 'short' | 'long' | undefined

year :'numeric'|'2-digit'|undefined

The representation of the year.

Type:
  • 'numeric' | '2-digit' | undefined