QScript DateQuantum
Jump to navigation
Jump to search
DateQuantum
QScriptDateQuantum: Represents a period unit and number of periods for date/time aggregation or duration. Used in QScriptDateTimeAggregationSettings for the 'aggregation' and 'duration' properties. Example: { numPeriods: 12, periodUnit: "Month" }
numPeriods
Number of periods (e.g., 1, 12, etc.)
periodUnit
The unit of one period. One of QScriptPeriodUnit's values: "Millisecond", "Second", "Minute", "Hour", "Day", "Week", "Fortnight", "Four Week", "Month", "Quarter", "Year", "Decade" or "Century". numPeriods multiplies the unit, so { numPeriods: 3, periodUnit: "Month" } is three months.
type
Returns 'DateQuantum'.