I have a Ruby DateTime which gets filled from a form. Additionally I have n hours from the form as well. I\'d like to subtract those n hours from the previous DateTime. (To
The advance method is nice if you want to be more explicit about behavior like this.
adjusted = time_from_form.advance(:hours => -n)