lib/tzinfo/definitions/Asia/Aqtau.rb in tzinfo-0.2.2 vs lib/tzinfo/definitions/Asia/Aqtau.rb in tzinfo-0.3.0
- old
+ new
@@ -1,62 +1,75 @@
-require 'tzinfo/timezone'
+require 'tzinfo/timezone_definition'
+
module TZInfo
-module Definitions #:nodoc:
-module Asia #:nodoc:
-class Aqtau < Timezone #:nodoc:
-setup
-set_identifier('Asia/Aqtau')
-add_unbounded_start_period {TimezonePeriod.new(nil,DateTime.new0(Rational.new!(6544549873,2700),0,Date::ITALY),12064,0,:LMT)}
-add_period(1924,5) {TimezonePeriod.new(DateTime.new0(Rational.new!(6544549873,2700),0,Date::ITALY),DateTime.new0(Rational.new!(7278445,3),0,Date::ITALY),14400,0,:FORT)}
-add_period(1930,6) {TimezonePeriod.new(DateTime.new0(Rational.new!(7278445,3),0,Date::ITALY),DateTime.new0(Rational.new!(58512727,24),0,Date::ITALY),18000,0,:FORT)}
-add_period(1962,12) {TimezonePeriod.new(DateTime.new0(Rational.new!(58512727,24),0,Date::ITALY),370724400,18000,0,:SHET)}
-add_period(1981,9) {TimezonePeriod.new(370724400,386445600,21600,0,:SHET)}
-add_period(1982,3) {TimezonePeriod.new(386445600,402256800,18000,3600,:SHEST)}
-add_period(1982,9) {TimezonePeriod.new(402256800,417985200,18000,0,:SHET)}
-add_period(1983,3) {TimezonePeriod.new(417985200,433792800,18000,3600,:SHEST)}
-add_period(1983,9) {TimezonePeriod.new(433792800,449607600,18000,0,:SHET)}
-add_period(1984,3) {TimezonePeriod.new(449607600,465339600,18000,3600,:SHEST)}
-add_period(1984,9) {TimezonePeriod.new(465339600,481064400,18000,0,:SHET)}
-add_period(1985,3) {TimezonePeriod.new(481064400,496789200,18000,3600,:SHEST)}
-add_period(1985,9) {TimezonePeriod.new(496789200,512514000,18000,0,:SHET)}
-add_period(1986,3) {TimezonePeriod.new(512514000,528238800,18000,3600,:SHEST)}
-add_period(1986,9) {TimezonePeriod.new(528238800,543963600,18000,0,:SHET)}
-add_period(1987,3) {TimezonePeriod.new(543963600,559688400,18000,3600,:SHEST)}
-add_period(1987,9) {TimezonePeriod.new(559688400,575413200,18000,0,:SHET)}
-add_period(1988,3) {TimezonePeriod.new(575413200,591138000,18000,3600,:SHEST)}
-add_period(1988,9) {TimezonePeriod.new(591138000,606862800,18000,0,:SHET)}
-add_period(1989,3) {TimezonePeriod.new(606862800,622587600,18000,3600,:SHEST)}
-add_period(1989,9) {TimezonePeriod.new(622587600,638312400,18000,0,:SHET)}
-add_period(1990,3) {TimezonePeriod.new(638312400,654642000,18000,3600,:SHEST)}
-add_period(1990,9) {TimezonePeriod.new(654642000,692823600,18000,0,:SHET)}
-add_period(1991,12) {TimezonePeriod.new(692823600,701805600,18000,0,:AQTT)}
-add_period(1992,3) {TimezonePeriod.new(701805600,717526800,18000,3600,:AQTST)}
-add_period(1992,9) {TimezonePeriod.new(717526800,733266000,18000,0,:AQTT)}
-add_period(1993,3) {TimezonePeriod.new(733266000,748990800,18000,3600,:AQTST)}
-add_period(1993,9) {TimezonePeriod.new(748990800,764715600,18000,0,:AQTT)}
-add_period(1994,3) {TimezonePeriod.new(764715600,780440400,18000,3600,:AQTST)}
-add_period(1994,9) {TimezonePeriod.new(780440400,796165200,18000,0,:AQTT)}
-add_period(1995,3) {TimezonePeriod.new(796165200,811893600,14400,3600,:AQTST)}
-add_period(1995,9) {TimezonePeriod.new(811893600,828223200,14400,0,:AQTT)}
-add_period(1996,3) {TimezonePeriod.new(828223200,846367200,14400,3600,:AQTST)}
-add_period(1996,10) {TimezonePeriod.new(846367200,859672800,14400,0,:AQTT)}
-add_period(1997,3) {TimezonePeriod.new(859672800,877816800,14400,3600,:AQTST)}
-add_period(1997,10) {TimezonePeriod.new(877816800,891122400,14400,0,:AQTT)}
-add_period(1998,3) {TimezonePeriod.new(891122400,909266400,14400,3600,:AQTST)}
-add_period(1998,10) {TimezonePeriod.new(909266400,922572000,14400,0,:AQTT)}
-add_period(1999,3) {TimezonePeriod.new(922572000,941320800,14400,3600,:AQTST)}
-add_period(1999,10) {TimezonePeriod.new(941320800,954021600,14400,0,:AQTT)}
-add_period(2000,3) {TimezonePeriod.new(954021600,972770400,14400,3600,:AQTST)}
-add_period(2000,10) {TimezonePeriod.new(972770400,985471200,14400,0,:AQTT)}
-add_period(2001,3) {TimezonePeriod.new(985471200,1004220000,14400,3600,:AQTST)}
-add_period(2001,10) {TimezonePeriod.new(1004220000,1017525600,14400,0,:AQTT)}
-add_period(2002,3) {TimezonePeriod.new(1017525600,1035669600,14400,3600,:AQTST)}
-add_period(2002,10) {TimezonePeriod.new(1035669600,1048975200,14400,0,:AQTT)}
-add_period(2003,3) {TimezonePeriod.new(1048975200,1067119200,14400,3600,:AQTST)}
-add_period(2003,10) {TimezonePeriod.new(1067119200,1080424800,14400,0,:AQTT)}
-add_period(2004,3) {TimezonePeriod.new(1080424800,1099173600,14400,3600,:AQTST)}
-add_period(2004,10) {TimezonePeriod.new(1099173600,1110830400,14400,0,:AQTT)}
-add_period(2005,3) {TimezonePeriod.new(1110830400,nil,18000,0,:AQTT)}
-end
-end
-end
+ module Definitions
+ module Asia
+ module Aqtau
+ include TimezoneDefinition
+
+ timezone 'Asia/Aqtau' do |tz|
+ tz.offset :o0, 12064, 0, :LMT
+ tz.offset :o1, 14400, 0, :FORT
+ tz.offset :o2, 18000, 0, :FORT
+ tz.offset :o3, 18000, 0, :SHET
+ tz.offset :o4, 21600, 0, :SHET
+ tz.offset :o5, 18000, 3600, :SHEST
+ tz.offset :o6, 18000, 0, :AQTT
+ tz.offset :o7, 18000, 3600, :AQTST
+ tz.offset :o8, 14400, 3600, :AQTST
+ tz.offset :o9, 14400, 0, :AQTT
+
+ tz.transition 1924, 5, :o1, 6544549873, 2700
+ tz.transition 1930, 6, :o2, 7278445, 3
+ tz.transition 1962, 12, :o3, 58512727, 24
+ tz.transition 1981, 9, :o4, 370724400
+ tz.transition 1982, 3, :o5, 386445600
+ tz.transition 1982, 9, :o3, 402256800
+ tz.transition 1983, 3, :o5, 417985200
+ tz.transition 1983, 9, :o3, 433792800
+ tz.transition 1984, 3, :o5, 449607600
+ tz.transition 1984, 9, :o3, 465339600
+ tz.transition 1985, 3, :o5, 481064400
+ tz.transition 1985, 9, :o3, 496789200
+ tz.transition 1986, 3, :o5, 512514000
+ tz.transition 1986, 9, :o3, 528238800
+ tz.transition 1987, 3, :o5, 543963600
+ tz.transition 1987, 9, :o3, 559688400
+ tz.transition 1988, 3, :o5, 575413200
+ tz.transition 1988, 9, :o3, 591138000
+ tz.transition 1989, 3, :o5, 606862800
+ tz.transition 1989, 9, :o3, 622587600
+ tz.transition 1990, 3, :o5, 638312400
+ tz.transition 1990, 9, :o3, 654642000
+ tz.transition 1991, 12, :o6, 692823600
+ tz.transition 1992, 3, :o7, 701805600
+ tz.transition 1992, 9, :o6, 717526800
+ tz.transition 1993, 3, :o7, 733266000
+ tz.transition 1993, 9, :o6, 748990800
+ tz.transition 1994, 3, :o7, 764715600
+ tz.transition 1994, 9, :o6, 780440400
+ tz.transition 1995, 3, :o8, 796165200
+ tz.transition 1995, 9, :o9, 811893600
+ tz.transition 1996, 3, :o8, 828223200
+ tz.transition 1996, 10, :o9, 846367200
+ tz.transition 1997, 3, :o8, 859672800
+ tz.transition 1997, 10, :o9, 877816800
+ tz.transition 1998, 3, :o8, 891122400
+ tz.transition 1998, 10, :o9, 909266400
+ tz.transition 1999, 3, :o8, 922572000
+ tz.transition 1999, 10, :o9, 941320800
+ tz.transition 2000, 3, :o8, 954021600
+ tz.transition 2000, 10, :o9, 972770400
+ tz.transition 2001, 3, :o8, 985471200
+ tz.transition 2001, 10, :o9, 1004220000
+ tz.transition 2002, 3, :o8, 1017525600
+ tz.transition 2002, 10, :o9, 1035669600
+ tz.transition 2003, 3, :o8, 1048975200
+ tz.transition 2003, 10, :o9, 1067119200
+ tz.transition 2004, 3, :o8, 1080424800
+ tz.transition 2004, 10, :o9, 1099173600
+ tz.transition 2005, 3, :o6, 1110830400
+ end
+ end
+ end
+ end
end