From: Michael Guterl Date: 2006-09-19T03:40:12+09:00 Subject: Date/Time Range ------=_Part_15507_17162561.1158604738530 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline It seems that every time I implement a class in Ruby I later find out someone has already done a much better job than myself. So before I take the time to implement a TimeRange class myself, I thought I'd ask if there was anything out there similar. I'd like to be able to do something like the following: >> start_date = Time.parse "9/1/2006" >> end_date = Time.parse "9/2/2006" >> r = TimeRange.new(start_date, end_date) >> r.each_hour do |hour| >> ... >> end >> r.each_day do |day| >> ... >> end >> r.each(1800) do |half_hour| >> .. >> end Any suggestions are welcome. Thanks, Michael Guterl ------=_Part_15507_17162561.1158604738530--