|  Developer

isDate

  • Triggering periodically when the particular time, day or month has come. Daily event arises in each time what is within time array. Weekly event arises in each weekday what is set within weekday array in time what is set within time array. Monthly event arises in each day what is set within day array in time what is set within time array. The Gregorian Calendar is used.
Edit
Field Type Required Description
blockOptions.method.args.type string + Argument declaration of schedule type. The value should be in block with name. The possible values are , or . Daily type requires presence of time array only. Weekly type requires presence of both time array and weekday array. Monthly type requires presence of both time array and day array.
blockOptions.method.args.time string + Argument declaration of time array. The value should be in block with name. The time array contains strings. The time format is “hh:mm” in 24-hour clock format. Type . See Item Value Type.
blockOptions.method.args.weekdays string Argument declaration of weekday array. The value should be in block with name. The weekday array contains integer numbers. The possible values are 1..7 range. Type . See Item Value Type.
blockOptions.method.args.days string Argument declaration of day array. The value should be in block with name. The day array contains integer numbers. The possible values are 1..31 range. If day is set to 31 then event works in each month where 31st day is present. Type . See Item Value Type.
blockOptions.method.args.weeks string Argument declaration of weeks array. The value should be in block with name . The weeks array contains integer numbers. The possible values are in range [1..6, -1] for weeks of a month (for ), and [1..53, -1] for weeks of a year (for ). Week -1 means the last week of a period. Type . See Item Value Type.
Edit
Edit
				
					"when" : [{
    "blockOptions":{
        "method":{
            "args":{
                "type":"type",
                "time":"time"
            },
            "name":"isDate"
        }
    },
    "blockType":"when",
    "fields":[
        {
            "name": "type",
            "type": "string",
            "value": "daily"
        },
        {
            "name": "time",
            "type": "24_hours_time_array",
            "value": [ "10:20", "12:40", "13:32" ]
        }
    ]
}]				
			
Edit
				
					"when" : [{
    "blockOptions":{
        "method":{
            "args":{
                "type":"type",
                "time":"time",
                "weekdays":"weekdays"
            },
            "name":"isDate"
        }
    },
    "blockType":"when",
    "fields":[
        {
            "name": "type",
            "type": "string",
            "value": "weekly"
        },
        {
            "name": "time",
            "type": "24_hours_time_array",
            "value": [ "10:20", "12:40", "13:32" ]
        },
        {
            "name": "weekdays",
            "type": "int_array",
            "value": [ 1, 2, 7 ]
        }
    ]
}]				
			
Edit
				
					"when" : [{
    "blockOptions":{
        "method":{
            "args":{
                "type": "type",
                "time":"time",
                "days":"days"
            },
            "name":"isDate"
        }
    },
    "blockType":"when",
    "fields":[
        {
            "name": "type",
            "type": "string",
            "value": "monthly"
        },
        {
            "name": "time",
            "type": "24_hours_time_array",
            "value": [ "10:20", "12:40", "13:32" ]
        },
        {
            "name": "days",
            "type": "int_array",
            "value": [ 1, 5, 12 ]
        }
    ]
}]				
			
Edit
				
					{
    "blockOptions": {
        "method": {
        "args": {
            "type": "type",
            "time": "time",
            "weeks": "weeks"
        },
        "name": "isDate"
        }
    },
    "blockType": "when",
    "fields": [
        {
            "name": "type",
            "type": "string",
            "value": "weeks"
        },
        {
            "name": "time",
            "type": "24_hours_time_array",
            "value": ["13:07", "13:08", "13:09"]
        },
        {
            "name": "weeks",
            "type": "int_array",
            "value": [1, 3, -1]
        }
    ]
}				
			
Edit
				
					{
    "blockOptions": {
        "method": {
            "args": {
                "type": "type",
                "time": "time",
                "weeks": "weeks"
            },
            "name": "isDate"
        }
    },
    "blockType": "when",
    "fields": [
        {
            "name": "type",
            "type": "string",
            "value": "yearWeeks"
        },
        {
            "name": "time",
            "type": "24_hours_time_array",
            "value": ["13:20", "13:21", "13:22"]
        },
        {
            "name": "weeks",
            "type": "int_array",
            "value": [35, 36, -1]
        }
    ]
}