From: "Sławosz Sławiński" Date: 2010-06-12T03:21:46+09:00 Subject: Re: Business hours processing > Not sure what you mean by "business hours", but if it is the same a > regular hour, and you have an end time (5 PM, for example) you can > simply subtract the two time objects. For example: > > time_left = Time.parse("17:00") - Time.now > > If "business hours" means something special, please explain. It means this. For example, there is http://github.com/bokmann/business_time but I need somethink like Time.now.business_time_left_to(Time.parse("Aug 5 2010, 9:35 am")) and it should returns how many business hours and minutes left. Or I will fork business_time gem. -- Posted via http://www.ruby-forum.com/.