Reputation: 1110
I would like to specify an event which results in occurences between hours 16-21, everyday.
How can I accomplish this?
I have already tried a lot to do this, e.g. by specifing Event.start to 16:00 and Event.end to 21:00 with "daily" frequency rule, but no luck. Only occurrences between 15:30 and 16 show up.
the _get_occurrence_list on Event model get's called with half hour intervals.
I already doubt it's possible. Does django-scheduler support such a use case?
Upvotes: 2
Views: 909
Reputation: 1796
Create an event with an HOURLY rule. Then give it these parameter: "byhour:16,17,18,19,20;"
In the database, you should see the following:
schedule_event:
schedule_rule:
Reference: http://labix.org/python-dateutil#head-470fa22b2db72000d7abe698a5783a46b0731b57
Upvotes: 0