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