instance method
utc
Ruby on Rails 6.1.7.10
Since v2.2.3Signature
utc()
Returns a Time instance of the simultaneous time in the UTC timezone.
Source
# File activesupport/lib/active_support/time_with_zone.rb, line 64
def utc
@utc ||= incorporate_utc_offset(@time, -utc_offset)
end
Defined in activesupport/lib/active_support/time_with_zone.rb line 64
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeWithZone