>980
def time_to_sec(time)
 time.split(":").inject(0){|r,e| r=r*60+e.to_i}
end