Check if event happens on certain date recurring

i’m using recurring and it works fine

now i have a datetime i want to check if the event (recurring) will happen

will that event happens on 2018-11-06 06:22 ?
how to check that with recurring

thank you


You can get events during the spicified date range by getEvents() method.

You will get an array contains all instances from the period
and then check if the certain instance has rec_type - only rec events has this property in data.