Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Apps, Widgets, and Controls

SetStartAndEndTimes

  • Last UpdatedFeb 25, 2021
  • 1 minute read

The SetStartAndEndTimes method sets the start and end times for the query.

Example

Dim b as Boolean;

b = Trend1.SetStartAndEndTimes("08/31/2008 15:33:43","09/01/2009 15:33:43",0);

Syntax

[Result =] Trend1.SetStartAndEndTimes(DateTime StartTime, DateTime EndTime, integer Duration);

Parameters

StartTime

The start time for the query. 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 query. Only considered if the duration is set to Custom or an option from 17 to 32 (OneMinute to ThreeMonths). Otherwise, the end time is set based on the duration.

Duration

The time1 range 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 "TimeSelector.TimeDuration".

In This Topic
TitleResults for “How to create a CRG?”Also Available in