Flowdock
to_s() public

Returns a string representing time. Equivalent to calling Time#strftime with a format string of “%Y-%m-%d %H:%M:%S %z” for a local time and “%Y-%m-%d %H:%M:%S UTC” for a UTC time.

Time.now.to_s       #=> "2007-10-05 16:09:51 +0900"
Time.now.utc.to_s   #=> "2007-10-05 07:09:51 UTC"
Show source
Register or log in to add new notes.