DateMode
- Last UpdatedNov 17, 2021
- 1 minute read
The DateMode property is a read-write property that gets or sets the date mode for the trend.
Syntax
aaHistClientTrend.DateMode = aaDateModeEnumeration;
Result = aaHistClientTrend.DateMode;
Remarks
The default value is 0 (absolute mode).
For more information on the aaDateModeEnumeration enumeration, see aaDateModeEnumeration Enumeration.
The DateMode property determines the functionality of the Time Bar and how time shifting is anchored as you switch between different time periods.
-
In absolute mode, the Time Bar has a start time and an end time. In this mode, each tag has its own time offset. The actual time period used for queries is the sum of the tag's "offset" and the start and end time for the Time Bar. The tag offset is set using the CurrentTagOffsetMS property.
-
In relative mode, the Time Bar has a starting time offset and an ending time offset. In this mode each tag has its own starting time. The actual time period used for queries is the sum of the tag's start time to the offsets of the Time Bar. If you set the DateMode property to use relative time, specify the start time for the current tag using the CurrentTagStartDate property.
In both modes, zoom and pan operations only manipulate the Time Bar properties, not the tag properties.