instance method
localtime
Ruby on Rails 4.0.13
Since v2.2.3Signature
localtime()
Returns a Time.local() instance of the simultaneous time in your system’s ENV['TZ'] zone.
Source
# File activesupport/lib/active_support/time_with_zone.rb, line 78
def localtime
utc.respond_to?(:getlocal) ? utc.getlocal : utc.to_time.getlocal
end
Defined in activesupport/lib/active_support/time_with_zone.rb line 78
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeWithZone