Method: Time#inspect

Defined in:
time.c

#inspectString #to_sString

Returns a string representing time. Equivalent to calling Time#strftime with a format string of “%a %b %d %H:%M:%S %Z %Y”.

Time.now.to_s   #=> "Wed Apr 09 08:56:04 CDT 2003"

Overloads:



1250
1251
1252
# File 'time.c', line 1250

static VALUE
time_to_s(time)
VALUE time;