method
new
v4.2.1 -
Show latest stable
- Class:
ActiveSupport::TimeWithZone
new(utc_time, time_zone, local_time = nil, period = nil)public
No documentation available.
# File activesupport/lib/active_support/time_with_zone.rb, line 46
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(period)
end