Rob Biedenharn wrote: > if days >= 7 > return "more than 7 days" > else > result = [] > result << "%sgg,"%days unless days.zero? > result << "%d:%0d"%[hours,mins] > return result.join(' ') > end Also, there is the duration gem : http://wiki.rubyonrails.org/rails/pages/Duration . Regards, Siep -- Posted via http://www.ruby-forum.com/.