next finds the next day but does not change date in-place. : next « Date « Ruby






next finds the next day but does not change date in-place.


# Add 61 days to a date:

require 'date'

date = Date.new( 2006, 11, 8 )

puts (date + 61).to_s

 








Related examples in the same category

1.What's the next day?