lib/tzinfo/definitions/Asia/Jayapura.rb in tzinfo-0.2.2 vs lib/tzinfo/definitions/Asia/Jayapura.rb in tzinfo-0.3.0

- old
+ new

@@ -1,15 +1,21 @@ -require 'tzinfo/timezone' +require 'tzinfo/timezone_definition' + module TZInfo -module Definitions #:nodoc: -module Asia #:nodoc: -class Jayapura < Timezone #:nodoc: -setup -set_identifier('Asia/Jayapura') -add_unbounded_start_period {TimezonePeriod.new(nil,DateTime.new0(Rational.new!(2912414531,1200),0,Date::ITALY),33768,0,:LMT)} -add_period(1932,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(2912414531,1200),0,Date::ITALY),DateTime.new0(Rational.new!(19448721,8),0,Date::ITALY),32400,0,:EIT)} -add_period(1943,12) {TimezonePeriod.new(DateTime.new0(Rational.new!(19448721,8),0,Date::ITALY),DateTime.new0(Rational.new!(117042965,48),0,Date::ITALY),34200,0,:CST)} -add_period(1963,12) {TimezonePeriod.new(DateTime.new0(Rational.new!(117042965,48),0,Date::ITALY),nil,32400,0,:EIT)} -end -end -end + module Definitions + module Asia + module Jayapura + include TimezoneDefinition + + timezone 'Asia/Jayapura' do |tz| + tz.offset :o0, 33768, 0, :LMT + tz.offset :o1, 32400, 0, :EIT + tz.offset :o2, 34200, 0, :CST + + tz.transition 1932, 10, :o1, 2912414531, 1200 + tz.transition 1943, 12, :o2, 19448721, 8 + tz.transition 1963, 12, :o1, 117042965, 48 + end + end + end + end end