instance method
local
Ruby on Rails 2.3.18
Since v2.2.3Signature
local(*args)
Method for creating new ActiveSupport::TimeWithZone instance in time zone of self from given values. Example:
Time.zone = "Hawaii" # => "Hawaii" Time.zone.local(2007, 2, 1, 15, 30, 45) # => Thu, 01 Feb 2007 15:30:45 HST -10:00
Parameters
-
argsrest
Source
# File activesupport/lib/active_support/values/time_zone.rb, line 226
def local(*args)
time = Time.utc_time(*args)
ActiveSupport::TimeWithZone.new(nil, self, time)
end
Defined in activesupport/lib/active_support/values/time_zone.rb line 226
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeZone