lib/tzinfo/definitions/Pacific/Tarawa.rb in tzinfo-0.2.2 vs lib/tzinfo/definitions/Pacific/Tarawa.rb in tzinfo-0.3.0

- old
+ new

@@ -1,13 +1,18 @@ -require 'tzinfo/timezone' +require 'tzinfo/timezone_definition' + module TZInfo -module Definitions #:nodoc: -module Pacific #:nodoc: -class Tarawa < Timezone #:nodoc: -setup -set_identifier('Pacific/Tarawa') -add_unbounded_start_period {TimezonePeriod.new(nil,DateTime.new0(Rational.new!(52172316419,21600),0,Date::ITALY),41524,0,:LMT)} -add_period(1900,12) {TimezonePeriod.new(DateTime.new0(Rational.new!(52172316419,21600),0,Date::ITALY),nil,43200,0,:GILT)} -end -end -end + module Definitions + module Pacific + module Tarawa + include TimezoneDefinition + + timezone 'Pacific/Tarawa' do |tz| + tz.offset :o0, 41524, 0, :LMT + tz.offset :o1, 43200, 0, :GILT + + tz.transition 1900, 12, :o1, 52172316419, 21600 + end + end + end + end end