class method
self.new
Ruby on Rails 3.0.20
Since v2.2.3Signature
self.new(utc_time, time_zone, local_time = nil, period = nil)
No documentation comment.
Parameters
-
utc_timereq -
time_zonereq -
local_timeopt = nil -
periodopt = nil
Source
# File activesupport/lib/active_support/time_with_zone.rb, line 43
def initialize(utc_time, time_zone, local_time = nil, period = nil)
@utc, @time_zone, @time = utc_time, time_zone, local_time
@period = @utc ? period : get_period_and_ensure_valid_local_time
end
Defined in activesupport/lib/active_support/time_with_zone.rb line 43
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeWithZone