Flowdock
<<(p1) public

Returns a date object pointing n months before self. The n should be a numeric value.

For example:

Date.new(2001,2,3) << 1   #=> #<Date: 2001-01-03 ...>
Date.new(2001,1,31) << 11 #=> #<Date: 2000-02-29 ...>
Date.new(2001,2,3) << -1  #=> #<Date: 2001-03-03 ...>
Show source
Register or log in to add new notes.