instance method
inspect
Ruby on Rails 8.0.4
Since v2.2.3Signature
inspect()
Returns a string of the object’s date, time, zone, and offset from UTC.
Time.zone.now.inspect # => "2024-11-13 07:00:10.528054960 UTC +00:00"
Source
# File activesupport/lib/active_support/time_with_zone.rb, line 140
def inspect
"#{time.strftime('%F %H:%M:%S.%9N')} #{zone} #{formatted_offset}"
end
Defined in activesupport/lib/active_support/time_with_zone.rb line 140
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeWithZone