End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Date#ctime
d.ctime → string
ext/date/date_core.c
View on GitHub ↗
static VALUE
d_lite_asctime(VALUE self)
{
return strftimev("%a %b %e %H:%M:%S %Y", self, set_tmx);
}
Alias of #asctime
Returns a string in asctime(3) format (but without “\n\0” at the end). This method is equivalent to strftime(‘%c’).
See also asctime(3) or ctime(3).