Returns a string representing time. Equivalent to calling Time#strftime with a format string of “%a %b %d %H:%M:%S %Z %Y”.
Time#strftime
%a
%b
%d
%H:%M:%S
%Z
%Y
Time.now.to_s #=> "Wed Apr 09 08:56:04 CDT 2003"
Overloads:
Returns:
1250 1251 1252
# File 'time.c', line 1250 static VALUE time_to_s(time) VALUE time;