Method: ActiveSupport::TimeWithZone#inspect

Defined in:
lib/active_support/time_with_zone.rb

#inspectObject

Returns a string of the object’s date, time, zone, and offset from UTC.

Time.zone.now.inspect # => "Thu, 04 Dec 2014 11:00:25.624541392 EST -05:00"


150
151
152
# File 'lib/active_support/time_with_zone.rb', line 150

def inspect
  "#{time.strftime('%a, %d %b %Y %H:%M:%S.%9N')} #{zone} #{formatted_offset}"
end