SchdSpecialItemDeleteRange
- Last UpdatedJul 18, 2023
- 1 minute read
The SchdSpecialItemDeleteRange function removes a range of special days in a specified special day group (category).
This function is a blocking function. It blocks the calling Cicode task until the operation is complete.
Syntax
INT SchdSpecialItemDeleteRange(STRING Cluster, STRING GroupID, TIMESTAMP FirstDay, TIMESTAMP LastDay)
Cluster:
The name of the cluster.
GroupID:
The ID of the special day group.
FirstDay:
The first day of the special day range as a timestamp. Use TimestampCreate or StrToTimestamp Cicode functions to get a timestamp data value. When creating a timestamp, please use midnight of the required day.
LastDay:
Last day (inclusive) of the special day range as a timestamp. Use TimestampCreate or StrToTimestamp Cicode functions to get a timestamp data value. When creating a timestamp, please use midnight of the required day.
Return Value
0 if successful, otherwise an error code is returned.
Related Functions
SchdSpecialItemAddRange, SchdSpecialItemModifyRange
Example
// Delete the following special day range for group id 1
// 2018-05-06 : 2018-05-10
SchdSpecialItemDeleteRange("Cluster1", 1,
TimestampCreate(2018,5,6,0,0,0,0,0), TimestampCreate(2018,5,10,0,0,0,0,0);