instance method
utc
Ruby on Rails 4.1.16
Since v2.2.3Signature
utc()
Returns a Time or DateTime instance that represents the time in UTC.
Source
# File activesupport/lib/active_support/time_with_zone.rb, line 57
def utc
@utc ||= period.to_utc(@time)
end
Defined in activesupport/lib/active_support/time_with_zone.rb line 57
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeWithZone