Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Time#to_time
() -> ::Time
t.to_time → time
ext/date/date_core.c
View on GitHub ↗
static VALUE
time_to_time(VALUE self)
{
return self;
}
Returns self.