TimeSelector.SetStartAndEndTimes() method
- Last UpdatedJul 19, 2024
- 1 minute read
The TimeSelector.SetStartAndEndTimes method sets the start and end times for a query.
To customize start time, duration, and end time you must set the UpdateToCurrentTime property to FALSE and specify one of the following parameter combinations:
-
Start time and end time. Set the Duration parameter to 0.
-
Start time and duration. Set the EndTime parameter to "".
-
End time and duration. Set the StartTime parameter to "".
-
Start time, duration, and end time. The Alarm Control shows an error message if start time plus duration is not equal to end time.
Syntax
AlarmClient.SetStartAndEndTimes(StartTime, EndTime, Duration);
Parameters
StartTime
String value or expression indicating the start time.
EndTime
String value or expression indicating the end time.
Duration
Duration enum. For more information on possible values, see TimeSelector.TimeDuration property.
Example
AlarmClient1.TimeSelector.SetStartAndEndTimes("08/31/2008 15:33:43","09/01/2009 15:33:43",0);