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