11
http://api.rubyonrails.org/classes/Time.html#method-i-advance documents a method advance() to add to the current time. Is there an opposite, 'go_back() method?
http://api.rubyonrails.org/classes/Time.html#method-i-advance documents a method advance() to add to the current time. Is there an opposite, 'go_back() method?
You could also try using
Time.now.ago(3.days)
Time.now.ago(3.days+3.hours)
You can use something like the following example
Time.now - 3.days