ice_cube icon indicating copy to clipboard operation
ice_cube copied to clipboard

Minutely recurrence windows by day of week?

Open sethaddison opened this issue 3 years ago • 2 comments

I am using IceCube to create calendar appointment windows per day of week (following the Calendly model). User can specify specify which days they take appointments, appointment duration, and then a start time and end time for that particular day. Example: Appointment duration: 15 Minutes Sunday: 9:15am - 5:30pm Monday: 10am - 1pm

I'm thinking I should create separate recurrence rules for each day of week. Where I'm getting stuck is on the start and end time of the daily window (down to the correct minute).

For Sunday, I know I can do schedule.rrule IceCube::Rule.minutely(15).day(:sunday).hour_of_day((9..17).to_a) to get 9 to 5, but do I get 9:15 to 5:30?

sethaddison avatar Jun 11 '22 23:06 sethaddison

Any chance I could get a quick reply on this? cc @seejohnrun @avit @pacso

sethaddison avatar Jun 16 '22 17:06 sethaddison

Hello, the way how I did this is to incorporate plain rails Time.between? method with weekday recurrence conjunction, because I had similar issue and I could not find the way to chain them together.

irakliasatiani avatar May 10 '23 06:05 irakliasatiani