instance method
utc
Ruby on Rails 2.2.3
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 47
def utc
@utc ||= period.to_utc(@time)
end
Defined in activesupport/lib/active_support/time_with_zone.rb line 47
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeWithZone