instance method
Date#ctime
() -> ::String
ctime
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
Equivalent to strftime with argument '%a %b %e %T %Y' (or its shorthand form '%c'):
Example
Date.new(2001, 2, 3).asctime # => "Sat Feb 3 00:00:00 2001"
See asctime.