Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
class method
DateTime.new
(?::Integer year, ?::Integer month, ?::Integer mday, ?::Integer hour, ?::Integer minute, ?::Integer second, ?::Integer offset, ?::Integer start) -> ::DateTime
new(*args)
ext/date/date_core.c
View on GitHub ↗
static VALUE
datetime_s_civil(int argc, VALUE *argv, VALUE klass)
{
return datetime_initialize(argc, argv, d_lite_s_alloc_complex(klass));
}
Same as DateTime.new.