instance method
localtime
Ruby on Rails 3.0.20
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 74
def localtime
utc.respond_to?(:getlocal) ? utc.getlocal : utc.to_time.getlocal
end
Defined in activesupport/lib/active_support/time_with_zone.rb line 74
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeWithZone