method

to_s

v1_8_7_330 - Show latest stable - Class: Time
to_s()
public

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"