From: LAMBEAU Bernard Date: 2009-04-13T16:16:20+09:00 Subject: Re: more efficient date range comparison It's a OR, not a AND, so it seems correct ... no? Seems to be the classical overlap operator on simple intervals. blambeau On Mon, Apr 13, 2009 at 8:57 AM, Albert Schlef wrote: > Dave Woodworth wrote: >>       conflicts += 1 if my_rec.include?(start) || >> my_rec.include?(finish) > > Off topic: I think you have a bug here. If my_rec is, say, 20..40, and > other_rec is, say, 10..50, your test won't detect this conflict (because > neither 10 nor 50 are included in the my_rec range). > -- > Posted via http://www.ruby-forum.com/. > >