Method: ActiveSupport::TimeZone#initialize

Defined in:
activesupport/lib/active_support/values/time_zone.rb

#initialize(name, utc_offset = nil, tzinfo = nil) ⇒ TimeZone

:stopdoc:



309
310
311
312
313
# File 'activesupport/lib/active_support/values/time_zone.rb', line 309

def initialize(name, utc_offset = nil, tzinfo = nil)
  @name = name
  @utc_offset = utc_offset
  @tzinfo = tzinfo || TimeZone.find_tzinfo(name)
end