instance method
inspect
Ruby on Rails 6.1.7.10
Since v2.2.3Signature
inspect()
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"
Source
# File activesupport/lib/active_support/time_with_zone.rb, line 141
def inspect
"#{time.strftime('%a, %d %b %Y %H:%M:%S.%9N')} #{zone} #{formatted_offset}"
end
Defined in activesupport/lib/active_support/time_with_zone.rb line 141
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeWithZone