SetTimeSpan
- Last UpdatedNov 17, 2021
- 1 minute read
The SetTimeSpan method sets the start and end time for the query.
Syntax
[Result=] aaHistClientQuery.SetTimeSpan(DateTime start, DateTime end, aaTimeRangeEnumeration duration);
Parameters
startTime
The start time for the query.
endTime
The end time for the query.
duration
The time duration, either Custom or an enumerated set.
Return Value
Returns True if the time span can be set; otherwise, returns False.
Remarks
The times can be specified as a duration (Last5Minutes, Last24Hours, etc.) or as a pair of start and end values, in which case the duration must be specified as Custom.
For more information on setting the date/time, see DateTime. For more information on setting the duration, see aaTimeRangeEnumeration Enumeration.