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