End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Date#gregorian
d.gregorian → date
ext/date/date_core.c
View on GitHub ↗
static VALUE
d_lite_gregorian(VALUE self)
{
return dup_obj_with_new_start(self, GREGORIAN);
}
This method is equivalent to new_start(Date::GREGORIAN).