Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Date#gregorian
() -> ::Date
gregorian → new_date
ext/date/date_core.c
View on GitHub ↗
static VALUE
d_lite_gregorian(VALUE self)
{
return dup_obj_with_new_start(self, GREGORIAN);
}
Equivalent to Date#new_start with argument Date::GREGORIAN.