instance method
localtime
Ruby on Rails 6.1.7.10
Since v2.2.3Signature
localtime(utc_offset = nil)
Returns a Time instance of the simultaneous time in the system timezone.
Parameters
-
utc_offsetopt = nil
Source
# File activesupport/lib/active_support/time_with_zone.rb, line 84
def localtime(utc_offset = nil)
utc.getlocal(utc_offset)
end
Defined in activesupport/lib/active_support/time_with_zone.rb line 84
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeWithZone