From: Brian Candler Date: 2008-12-10T22:19:18+09:00 Subject: Re: want only the working hours(9am-5pm) between two dates Srikanth Jeeva wrote: > but i need the total hours between 9am-5pm, between the given dates.. > can any one plz help?? Not sure what you mean. Do you mean (date2 - date1 + 1) * 8 ? Use to_i on the answer if you don't want Rational arithmetic. -- Posted via http://www.ruby-forum.com/.