Skip to main content
Version: v4 (Stable)

SetSchedule

SetSchedule(GroupId As Integer/String, BeginTime As Time, EndTime As Time, TeamId As Integer/String[, bReducedDuty As Boolean]) As Boolean

Defines a time slot in the schedule of the group specified by the <GroupId> parameter (numeric identifier or group name).

The <BeginTime> and <EndTime> parameters contain the start time and end time of the time slot.

The <TeamId> parameter is the name or numerical identifier of the team to be assigned to the time slot. To assign the team defined in the weekly program, use the value 0. To define an empty time slot (no team), use the value -1.

The optional parameter <bReducedDuty> specifies when TRUE that the time slot is defined as reduced duty (calls only for priority alarms). The default value is FALSE.

Returns TRUE if successful.