SetTimeSpan
- Last UpdatedNov 17, 2021
- 1 minute read
The SetTimeSpan method sets the start and end time for the trend.
Syntax
[Result=] aaHistClientTrend.SetTimeSpan(DateTime startTime, DateTime endTime, integer duration);
Parameters
startTime
The start time for the trend. Only considered if the duration is set to Custom. For other durations, the start time is calculated automatically based on the end time and duration.
endTime
The end time for the trend. Only considered if the duration is set to Custom, or if the property is set to False and the duration is set to an option from 17 to 32 (OneMinute to ThreeMonths). Otherwise, the end time is always assumed to be the current time.
duration
The time duration. If the duration is set to Custom, the specified start and end times are used. For other duration options, the time indicated by the duration is used, and the start and/or end times are updated as necessary. For more information on valid values for the duration, see aaTimeRangeEnumeration Enumeration.
Remarks
For information on setting the date/time value, see DateTime.