Class: TimeIntervalDateTimeFormat

StockChartX. TimeIntervalDateTimeFormat


new TimeIntervalDateTimeFormat()

Represents date time formatter which formats dates in different ways depending on specified time interval.

Extends

Members


locale :string

The locale string to use.
Type:
  • string
Inherited From:

timeInterval :number

The time interval
Type:
  • number

Methods


formatWithFormatter(date, formatName)

Formats specified date using formatter with a given name.
Parameters:
Name Type Description
date Date The date.
formatName string The formatter name to be used. See StockChartX.DateTimeFormatName.
Returns:
Type
string

loadState(state)

Loads state.
Parameters:
Name Type Description
state object The state.
Inherited From:
See:

saveState()

Saves formatter state.
Inherited From:
See:
Returns:
The state.
Type
object