method

inspect

v1_9_2_180 - Show latest stable - Class: Time
inspect()
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"