TimeSelector.DurationMS property
- Last UpdatedJul 19, 2024
- 1 minute read
The TimeSelector.DurationMS property is a read-write integer property that gets the time duration measured in milliseconds.
The start time of the Alarm control (TimeSelector.StartDate) is calculated as the end time (TimeSelector.EndDate) minus the new time duration (TimeSelector.DurationMS).
When you set the value of the TimeSelector.DurationMS property, the TimeSelector.TimeDuration property is set to 0.
The default value is 3600000.
Syntax
result = AlarmClient.TimeSelector.DurationMS;
AlarmClient.TimeSelector.DurationMS = Value;
Example
AlarmClient1.TimeSelector.DurationMS = 1800000;
// The Alarm Control now retrieves alarms from the last 30 minutes.