instance method
Date#next
() -> ::Date
d.next → new_date
ext/date/date_core.c
View on GitHub ↗
static VALUE
d_lite_next(VALUE self)
{
return d_lite_next_day(0, (VALUE *)NULL, self);
}
Returns a new Date object representing the following day:
Example
d = Date.new(2001, 2, 3) d.to_s # => "2001-02-03" d.next.to_s # => "2001-02-04"