Mikro,

Thanks, I'm glad you like it :)

Individual rules can take an end date as follows:
rule = IceCube::Rule.weekly.until(Time.local(2010, 10, 6))

Just a note: Until times are inclusive.

Hope this helps!
Thanks,
John Crepezzi <[email protected]>


On Jun 1, 5:43 am, mikrogroove <[email protected]> wrote:
> This is a great gem, and probably the best starting point I could have
> hoped for in order to meet my project's requirements - thanks a
> million for putting it together!
>
> I'm dealing with recurring events which can be both stuff like normal
> business hours (mon-fri 10-18 & sat 12-18) or more obscure ones
> (second sunday of every month 12-19).  I've set up a simple model and
> associated form which generates rules for the starting times, and it
> all works very nicely indeed (I render the schedule to YAML before
> storing in DB). But then *doh* it hits me: there is no way to specify
> an end time other than the time when the recurring series as a whole
> should end. How do I go about giving each recurring event a time
> span?
>
> Many thanks,
>
> mikrogroove
>
> On 26 Apr, 23:25, John Crepezzi <[email protected]> wrote:
>
>
>
> > == Aboutice_cubeice_cubeis a time recurrence library for Ruby.  The API is 
> > modeled
> > after iCalendar repeating events, making it very easy to describe
> > complex rules and conjunctions in pure Ruby.  ice_cube'spower lies in
> > its ability to specify multiple rules - and easily query and expand
> > them.  Most importantly,ice_cubeis fast, extremely expressive, and
> > removes ugly complex date logic from your application.
>
> > == Example
> > Rule.yearly.day(:friday).day_of_month(13).month_of_year(:october)
>
> > == Getice_cube
> > website:http://seejohnrun.github.com/ice_cube/
> > github:  http://github.com/seejohnrun/ice_cube
>
> > gem installice_cube
>
> > Thanks,
> > John Crepezzi
> > <[email protected]>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to