QScript PeriodInfo
Jump to navigation
Jump to search
PeriodInfo
Contains information about a time period. This includes the text label as displayed on chart axes, the start date/time and the end date/time. To get the period information for a Variable, use the periods property.
end
The end date and time of this range. Returns a Javascript Date object.
| Example: | var endYear = period.end.getYear();
var endMonth = period.end.getMonth();
|
labelText
The label text that describes this date range. For example "6/22/2017 12:00:00 AM - 6/22/2017 11:59:59 AM".
start
The start date and time of this range. Returns a Javascript Date object.
| Example: | var startYear = period.start.getYear();
var startMonth = period.start.getMonth();
|
startTimeMillisecondsSinceEpoch
The milliseconds since Unix epoch (1970-01-01T00:00:00Z) for the start of this range.