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