SetDuration
- Last UpdatedDec 08, 2015
- 1 minute read
The SetDuration method sets the duration of the trend. Calling this method first sets the end time to the current time and then the start time to current time minus the specified duration. Default duration is 5 minutes. Maximum duration is 24 hours.
Example
dim b as boolean;
b = Trend1.SetDuration("00:05:00");
Syntax
[Result=] Trend1.SetDuration(string DateTimeDuration);
Parameters
DateTimeDuration
The time of the duration in HH:MM:SS format.
Return Value
Returns TRUE if the duration is set successfully; otherwise, returns FALSE.