irb(main):005:0> def create_time(h,m)
irb(main):006:1> Time.local(2008,5,10,h,m,0)
irb(main):007:1> end
=> nil
irb(main):010:0> arr = []
=> []
irb(main):011:0> arr << (create_time(5,50)..create_time(7,0))
=> [Sat May 10 05:50:00 +0800 2008..Sat May 10 07:00:00 +0800 2008]
irb(main):012:0> arr << (create_time(9,15)..create_time(9,35))
=> [Sat May 10 05:50:00 +0800 2008..Sat May 10 07:00:00 +0800 2008, Sat May 10 0
9:15:00 +0800 2008..Sat May 10 09:35:00 +0800 2008]
irb(main):013:0> arr << (create_time(12,50)..create_time(13,5))
=> [Sat May 10 05:50:00 +0800 2008..Sat May 10 07:00:00 +0800 2008, Sat May 10 0
9:15:00 +0800 2008..Sat May 10 09