lib/tzinfo/definitions/America/Fortaleza.rb in tzinfo-0.2.2 vs lib/tzinfo/definitions/America/Fortaleza.rb in tzinfo-0.3.0
- old
+ new
@@ -1,51 +1,57 @@
-require 'tzinfo/timezone'
+require 'tzinfo/timezone_definition'
+
module TZInfo
-module Definitions #:nodoc:
-module America #:nodoc:
-class Fortaleza < Timezone #:nodoc:
-setup
-set_identifier('America/Fortaleza')
-add_unbounded_start_period {TimezonePeriod.new(nil,DateTime.new0(Rational.new!(1742496197,720),0,Date::ITALY),-9240,0,:LMT)}
-add_period(1914,1) {TimezonePeriod.new(DateTime.new0(Rational.new!(1742496197,720),0,Date::ITALY),DateTime.new0(Rational.new!(29119417,12),0,Date::ITALY),-10800,0,:BRT)}
-add_period(1931,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(29119417,12),0,Date::ITALY),DateTime.new0(Rational.new!(29121583,12),0,Date::ITALY),-10800,3600,:BRST)}
-add_period(1932,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29121583,12),0,Date::ITALY),DateTime.new0(Rational.new!(19415869,8),0,Date::ITALY),-10800,0,:BRT)}
-add_period(1932,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19415869,8),0,Date::ITALY),DateTime.new0(Rational.new!(29125963,12),0,Date::ITALY),-10800,3600,:BRST)}
-add_period(1933,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29125963,12),0,Date::ITALY),DateTime.new0(Rational.new!(19466013,8),0,Date::ITALY),-10800,0,:BRT)}
-add_period(1949,12) {TimezonePeriod.new(DateTime.new0(Rational.new!(19466013,8),0,Date::ITALY),DateTime.new0(Rational.new!(19467101,8),0,Date::ITALY),-10800,3600,:BRST)}
-add_period(1950,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(19467101,8),0,Date::ITALY),DateTime.new0(Rational.new!(19468933,8),0,Date::ITALY),-10800,0,:BRT)}
-add_period(1950,12) {TimezonePeriod.new(DateTime.new0(Rational.new!(19468933,8),0,Date::ITALY),DateTime.new0(Rational.new!(29204851,12),0,Date::ITALY),-10800,3600,:BRST)}
-add_period(1951,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29204851,12),0,Date::ITALY),DateTime.new0(Rational.new!(19471853,8),0,Date::ITALY),-10800,0,:BRT)}
-add_period(1951,12) {TimezonePeriod.new(DateTime.new0(Rational.new!(19471853,8),0,Date::ITALY),DateTime.new0(Rational.new!(29209243,12),0,Date::ITALY),-10800,3600,:BRST)}
-add_period(1952,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29209243,12),0,Date::ITALY),DateTime.new0(Rational.new!(19474781,8),0,Date::ITALY),-10800,0,:BRT)}
-add_period(1952,12) {TimezonePeriod.new(DateTime.new0(Rational.new!(19474781,8),0,Date::ITALY),DateTime.new0(Rational.new!(29213251,12),0,Date::ITALY),-10800,3600,:BRST)}
-add_period(1953,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29213251,12),0,Date::ITALY),DateTime.new0(Rational.new!(19506981,8),0,Date::ITALY),-10800,0,:BRT)}
-add_period(1963,12) {TimezonePeriod.new(DateTime.new0(Rational.new!(19506981,8),0,Date::ITALY),DateTime.new0(Rational.new!(29261467,12),0,Date::ITALY),-10800,3600,:BRST)}
-add_period(1964,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29261467,12),0,Date::ITALY),DateTime.new0(Rational.new!(19510333,8),0,Date::ITALY),-10800,0,:BRT)}
-add_period(1965,1) {TimezonePeriod.new(DateTime.new0(Rational.new!(19510333,8),0,Date::ITALY),DateTime.new0(Rational.new!(29266207,12),0,Date::ITALY),-10800,3600,:BRST)}
-add_period(1965,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29266207,12),0,Date::ITALY),DateTime.new0(Rational.new!(19512765,8),0,Date::ITALY),-10800,0,:BRT)}
-add_period(1965,12) {TimezonePeriod.new(DateTime.new0(Rational.new!(19512765,8),0,Date::ITALY),DateTime.new0(Rational.new!(29270227,12),0,Date::ITALY),-10800,3600,:BRST)}
-add_period(1966,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29270227,12),0,Date::ITALY),DateTime.new0(Rational.new!(19515445,8),0,Date::ITALY),-10800,0,:BRT)}
-add_period(1966,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19515445,8),0,Date::ITALY),DateTime.new0(Rational.new!(29274607,12),0,Date::ITALY),-10800,3600,:BRST)}
-add_period(1967,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29274607,12),0,Date::ITALY),DateTime.new0(Rational.new!(19518365,8),0,Date::ITALY),-10800,0,:BRT)}
-add_period(1967,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19518365,8),0,Date::ITALY),DateTime.new0(Rational.new!(29278999,12),0,Date::ITALY),-10800,3600,:BRST)}
-add_period(1968,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29278999,12),0,Date::ITALY),499748400,-10800,0,:BRT)}
-add_period(1985,11) {TimezonePeriod.new(499748400,511236000,-10800,3600,:BRST)}
-add_period(1986,3) {TimezonePeriod.new(511236000,530593200,-10800,0,:BRT)}
-add_period(1986,10) {TimezonePeriod.new(530593200,540266400,-10800,3600,:BRST)}
-add_period(1987,2) {TimezonePeriod.new(540266400,562129200,-10800,0,:BRT)}
-add_period(1987,10) {TimezonePeriod.new(562129200,571197600,-10800,3600,:BRST)}
-add_period(1988,2) {TimezonePeriod.new(571197600,592974000,-10800,0,:BRT)}
-add_period(1988,10) {TimezonePeriod.new(592974000,602042400,-10800,3600,:BRST)}
-add_period(1989,1) {TimezonePeriod.new(602042400,624423600,-10800,0,:BRT)}
-add_period(1989,10) {TimezonePeriod.new(624423600,634701600,-10800,3600,:BRST)}
-add_period(1990,2) {TimezonePeriod.new(634701600,938919600,-10800,0,:BRT)}
-add_period(1999,10) {TimezonePeriod.new(938919600,951616800,-10800,3600,:BRST)}
-add_period(2000,2) {TimezonePeriod.new(951616800,970974000,-10800,0,:BRT)}
-add_period(2000,10) {TimezonePeriod.new(970974000,972180000,-10800,3600,:BRST)}
-add_period(2000,10) {TimezonePeriod.new(972180000,1003028400,-10800,0,:BRT)}
-add_period(2001,10) {TimezonePeriod.new(1003028400,1013911200,-10800,3600,:BRST)}
-add_period(2002,2) {TimezonePeriod.new(1013911200,nil,-10800,0,:BRT)}
-end
-end
-end
+ module Definitions
+ module America
+ module Fortaleza
+ include TimezoneDefinition
+
+ timezone 'America/Fortaleza' do |tz|
+ tz.offset :o0, -9240, 0, :LMT
+ tz.offset :o1, -10800, 0, :BRT
+ tz.offset :o2, -10800, 3600, :BRST
+
+ tz.transition 1914, 1, :o1, 1742496197, 720
+ tz.transition 1931, 10, :o2, 29119417, 12
+ tz.transition 1932, 4, :o1, 29121583, 12
+ tz.transition 1932, 10, :o2, 19415869, 8
+ tz.transition 1933, 4, :o1, 29125963, 12
+ tz.transition 1949, 12, :o2, 19466013, 8
+ tz.transition 1950, 4, :o1, 19467101, 8
+ tz.transition 1950, 12, :o2, 19468933, 8
+ tz.transition 1951, 4, :o1, 29204851, 12
+ tz.transition 1951, 12, :o2, 19471853, 8
+ tz.transition 1952, 4, :o1, 29209243, 12
+ tz.transition 1952, 12, :o2, 19474781, 8
+ tz.transition 1953, 3, :o1, 29213251, 12
+ tz.transition 1963, 12, :o2, 19506981, 8
+ tz.transition 1964, 3, :o1, 29261467, 12
+ tz.transition 1965, 1, :o2, 19510333, 8
+ tz.transition 1965, 3, :o1, 29266207, 12
+ tz.transition 1965, 12, :o2, 19512765, 8
+ tz.transition 1966, 3, :o1, 29270227, 12
+ tz.transition 1966, 11, :o2, 19515445, 8
+ tz.transition 1967, 3, :o1, 29274607, 12
+ tz.transition 1967, 11, :o2, 19518365, 8
+ tz.transition 1968, 3, :o1, 29278999, 12
+ tz.transition 1985, 11, :o2, 499748400
+ tz.transition 1986, 3, :o1, 511236000
+ tz.transition 1986, 10, :o2, 530593200
+ tz.transition 1987, 2, :o1, 540266400
+ tz.transition 1987, 10, :o2, 562129200
+ tz.transition 1988, 2, :o1, 571197600
+ tz.transition 1988, 10, :o2, 592974000
+ tz.transition 1989, 1, :o1, 602042400
+ tz.transition 1989, 10, :o2, 624423600
+ tz.transition 1990, 2, :o1, 634701600
+ tz.transition 1999, 10, :o2, 938919600
+ tz.transition 2000, 2, :o1, 951616800
+ tz.transition 2000, 10, :o2, 970974000
+ tz.transition 2000, 10, :o1, 972180000
+ tz.transition 2001, 10, :o2, 1003028400
+ tz.transition 2002, 2, :o1, 1013911200
+ end
+ end
+ end
+ end
end