lib/tzinfo/definitions/America/Rio_Branco.rb in tzinfo-0.2.2 vs lib/tzinfo/definitions/America/Rio_Branco.rb in tzinfo-0.3.0
- old
+ new
@@ -1,41 +1,47 @@
-require 'tzinfo/timezone'
+require 'tzinfo/timezone_definition'
+
module TZInfo
-module Definitions #:nodoc:
-module America #:nodoc:
-class Rio_Branco < Timezone #:nodoc:
-setup
-set_identifier('America/Rio_Branco')
-add_unbounded_start_period {TimezonePeriod.new(nil,DateTime.new0(Rational.new!(1452080213,600),0,Date::ITALY),-16272,0,:LMT)}
-add_period(1914,1) {TimezonePeriod.new(DateTime.new0(Rational.new!(1452080213,600),0,Date::ITALY),DateTime.new0(Rational.new!(14559709,6),0,Date::ITALY),-18000,0,:ACT)}
-add_period(1931,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14559709,6),0,Date::ITALY),DateTime.new0(Rational.new!(7280396,3),0,Date::ITALY),-18000,3600,:ACST)}
-add_period(1932,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(7280396,3),0,Date::ITALY),DateTime.new0(Rational.new!(58247609,24),0,Date::ITALY),-18000,0,:ACT)}
-add_period(1932,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(58247609,24),0,Date::ITALY),DateTime.new0(Rational.new!(7281491,3),0,Date::ITALY),-18000,3600,:ACST)}
-add_period(1933,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(7281491,3),0,Date::ITALY),DateTime.new0(Rational.new!(58398041,24),0,Date::ITALY),-18000,0,:ACT)}
-add_period(1949,12) {TimezonePeriod.new(DateTime.new0(Rational.new!(58398041,24),0,Date::ITALY),DateTime.new0(Rational.new!(58401305,24),0,Date::ITALY),-18000,3600,:ACST)}
-add_period(1950,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(58401305,24),0,Date::ITALY),DateTime.new0(Rational.new!(58406801,24),0,Date::ITALY),-18000,0,:ACT)}
-add_period(1950,12) {TimezonePeriod.new(DateTime.new0(Rational.new!(58406801,24),0,Date::ITALY),DateTime.new0(Rational.new!(7301213,3),0,Date::ITALY),-18000,3600,:ACST)}
-add_period(1951,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(7301213,3),0,Date::ITALY),DateTime.new0(Rational.new!(58415561,24),0,Date::ITALY),-18000,0,:ACT)}
-add_period(1951,12) {TimezonePeriod.new(DateTime.new0(Rational.new!(58415561,24),0,Date::ITALY),DateTime.new0(Rational.new!(7302311,3),0,Date::ITALY),-18000,3600,:ACST)}
-add_period(1952,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(7302311,3),0,Date::ITALY),DateTime.new0(Rational.new!(58424345,24),0,Date::ITALY),-18000,0,:ACT)}
-add_period(1952,12) {TimezonePeriod.new(DateTime.new0(Rational.new!(58424345,24),0,Date::ITALY),DateTime.new0(Rational.new!(7303313,3),0,Date::ITALY),-18000,3600,:ACST)}
-add_period(1953,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(7303313,3),0,Date::ITALY),DateTime.new0(Rational.new!(58520945,24),0,Date::ITALY),-18000,0,:ACT)}
-add_period(1963,12) {TimezonePeriod.new(DateTime.new0(Rational.new!(58520945,24),0,Date::ITALY),DateTime.new0(Rational.new!(7315367,3),0,Date::ITALY),-18000,3600,:ACST)}
-add_period(1964,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(7315367,3),0,Date::ITALY),DateTime.new0(Rational.new!(58531001,24),0,Date::ITALY),-18000,0,:ACT)}
-add_period(1965,1) {TimezonePeriod.new(DateTime.new0(Rational.new!(58531001,24),0,Date::ITALY),DateTime.new0(Rational.new!(7316552,3),0,Date::ITALY),-18000,3600,:ACST)}
-add_period(1965,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(7316552,3),0,Date::ITALY),DateTime.new0(Rational.new!(58538297,24),0,Date::ITALY),-18000,0,:ACT)}
-add_period(1965,12) {TimezonePeriod.new(DateTime.new0(Rational.new!(58538297,24),0,Date::ITALY),DateTime.new0(Rational.new!(7317557,3),0,Date::ITALY),-18000,3600,:ACST)}
-add_period(1966,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(7317557,3),0,Date::ITALY),DateTime.new0(Rational.new!(58546337,24),0,Date::ITALY),-18000,0,:ACT)}
-add_period(1966,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(58546337,24),0,Date::ITALY),DateTime.new0(Rational.new!(7318652,3),0,Date::ITALY),-18000,3600,:ACST)}
-add_period(1967,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(7318652,3),0,Date::ITALY),DateTime.new0(Rational.new!(58555097,24),0,Date::ITALY),-18000,0,:ACT)}
-add_period(1967,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(58555097,24),0,Date::ITALY),DateTime.new0(Rational.new!(7319750,3),0,Date::ITALY),-18000,3600,:ACST)}
-add_period(1968,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(7319750,3),0,Date::ITALY),499755600,-18000,0,:ACT)}
-add_period(1985,11) {TimezonePeriod.new(499755600,511243200,-18000,3600,:ACST)}
-add_period(1986,3) {TimezonePeriod.new(511243200,530600400,-18000,0,:ACT)}
-add_period(1986,10) {TimezonePeriod.new(530600400,540273600,-18000,3600,:ACST)}
-add_period(1987,2) {TimezonePeriod.new(540273600,562136400,-18000,0,:ACT)}
-add_period(1987,10) {TimezonePeriod.new(562136400,571204800,-18000,3600,:ACST)}
-add_period(1988,2) {TimezonePeriod.new(571204800,nil,-18000,0,:ACT)}
-end
-end
-end
+ module Definitions
+ module America
+ module Rio_Branco
+ include TimezoneDefinition
+
+ timezone 'America/Rio_Branco' do |tz|
+ tz.offset :o0, -16272, 0, :LMT
+ tz.offset :o1, -18000, 0, :ACT
+ tz.offset :o2, -18000, 3600, :ACST
+
+ tz.transition 1914, 1, :o1, 1452080213, 600
+ tz.transition 1931, 10, :o2, 14559709, 6
+ tz.transition 1932, 4, :o1, 7280396, 3
+ tz.transition 1932, 10, :o2, 58247609, 24
+ tz.transition 1933, 4, :o1, 7281491, 3
+ tz.transition 1949, 12, :o2, 58398041, 24
+ tz.transition 1950, 4, :o1, 58401305, 24
+ tz.transition 1950, 12, :o2, 58406801, 24
+ tz.transition 1951, 4, :o1, 7301213, 3
+ tz.transition 1951, 12, :o2, 58415561, 24
+ tz.transition 1952, 4, :o1, 7302311, 3
+ tz.transition 1952, 12, :o2, 58424345, 24
+ tz.transition 1953, 3, :o1, 7303313, 3
+ tz.transition 1963, 12, :o2, 58520945, 24
+ tz.transition 1964, 3, :o1, 7315367, 3
+ tz.transition 1965, 1, :o2, 58531001, 24
+ tz.transition 1965, 3, :o1, 7316552, 3
+ tz.transition 1965, 12, :o2, 58538297, 24
+ tz.transition 1966, 3, :o1, 7317557, 3
+ tz.transition 1966, 11, :o2, 58546337, 24
+ tz.transition 1967, 3, :o1, 7318652, 3
+ tz.transition 1967, 11, :o2, 58555097, 24
+ tz.transition 1968, 3, :o1, 7319750, 3
+ tz.transition 1985, 11, :o2, 499755600
+ tz.transition 1986, 3, :o1, 511243200
+ tz.transition 1986, 10, :o2, 530600400
+ tz.transition 1987, 2, :o1, 540273600
+ tz.transition 1987, 10, :o2, 562136400
+ tz.transition 1988, 2, :o1, 571204800
+ end
+ end
+ end
+ end
end