A simple d/h/m/s to d/h/m/s converter in Ruby