From: Ammar Ali Date: 2010-06-12T03:11:30+09:00 Subject: Re: Business hours processing 2010/6/11 Sławosz Sławiński : > Hi, > I need to determine how many business hours left to some Time. Do you > know any library with this feature? > > Sławosz > -- > Posted via http://www.ruby-forum.com/. > > 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. Ammar