charton API / @chart-on/core / index / intervalStart
Function: intervalStart()
intervalStart(
time,interval,zone?,open?):number
Defined in: packages/core/src/data/interval.ts:131
Start of the bar of interval that holds time. Calendar bars start on the first day of their month, quarter (January, April, July, October) or year in zone, open seconds after midnight wall-clock time (the session open; negative for a session that opens the evening before). Bars of several months are counted from January of year 0, so '6M' starts in January and July. Fixed-length bars are multiples of their length since the unix epoch, whatever zone.
Parameters
time
number
interval
zone?
Zone = UTC
open?
number = 0
Returns
number