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