lib/tzinfo/definitions/Asia/Almaty.rb in tzinfo-0.1.2 vs lib/tzinfo/definitions/Asia/Almaty.rb in tzinfo-0.2.0
- old
+ new
@@ -1,63 +1,60 @@
-require 'tzinfo/timezone'
-module TZInfo
-module Definitions #:nodoc:
-module Asia #:nodoc:
-class Almaty < Timezone #:nodoc:
-setup
-set_identifier('Asia/Almaty')
-add_unbounded_start_period {TimezonePeriod.new(nil,DateTime.new0(Rational.new!(1939125829,800),0,Date::ITALY),18468,0,:'LMT')}
-add_period(1924,5) {TimezonePeriod.new(DateTime.new0(Rational.new!(1939125829,800),0,Date::ITALY),DateTime.new0(Rational.new!(58227559,24),0,Date::ITALY),18000,0,:'ALMT')}
-add_period(1930,6) {TimezonePeriod.new(DateTime.new0(Rational.new!(58227559,24),0,Date::ITALY),DateTime.new0(Rational.new!(9778781,4),0,Date::ITALY),21600,0,:'ALMT')}
-add_period(1981,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(9778781,4),0,Date::ITALY),DateTime.new0(Rational.new!(58677077,24),0,Date::ITALY),21600,3600,:'ALMST')}
-add_period(1981,9) {TimezonePeriod.new(DateTime.new0(Rational.new!(58677077,24),0,Date::ITALY),DateTime.new0(Rational.new!(9780241,4),0,Date::ITALY),21600,0,:'ALMT')}
-add_period(1982,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(9780241,4),0,Date::ITALY),DateTime.new0(Rational.new!(58685837,24),0,Date::ITALY),21600,3600,:'ALMST')}
-add_period(1982,9) {TimezonePeriod.new(DateTime.new0(Rational.new!(58685837,24),0,Date::ITALY),DateTime.new0(Rational.new!(9781701,4),0,Date::ITALY),21600,0,:'ALMT')}
-add_period(1983,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(9781701,4),0,Date::ITALY),DateTime.new0(Rational.new!(58694597,24),0,Date::ITALY),21600,3600,:'ALMST')}
-add_period(1983,9) {TimezonePeriod.new(DateTime.new0(Rational.new!(58694597,24),0,Date::ITALY),DateTime.new0(Rational.new!(9783165,4),0,Date::ITALY),21600,0,:'ALMT')}
-add_period(1984,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(9783165,4),0,Date::ITALY),DateTime.new0(Rational.new!(7337920,3),0,Date::ITALY),21600,3600,:'ALMST')}
-add_period(1984,9) {TimezonePeriod.new(DateTime.new0(Rational.new!(7337920,3),0,Date::ITALY),DateTime.new0(Rational.new!(7338466,3),0,Date::ITALY),21600,0,:'ALMT')}
-add_period(1985,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(7338466,3),0,Date::ITALY),DateTime.new0(Rational.new!(7339012,3),0,Date::ITALY),21600,3600,:'ALMST')}
-add_period(1985,9) {TimezonePeriod.new(DateTime.new0(Rational.new!(7339012,3),0,Date::ITALY),DateTime.new0(Rational.new!(7339558,3),0,Date::ITALY),21600,0,:'ALMT')}
-add_period(1986,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(7339558,3),0,Date::ITALY),DateTime.new0(Rational.new!(7340104,3),0,Date::ITALY),21600,3600,:'ALMST')}
-add_period(1986,9) {TimezonePeriod.new(DateTime.new0(Rational.new!(7340104,3),0,Date::ITALY),DateTime.new0(Rational.new!(7340650,3),0,Date::ITALY),21600,0,:'ALMT')}
-add_period(1987,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(7340650,3),0,Date::ITALY),DateTime.new0(Rational.new!(7341196,3),0,Date::ITALY),21600,3600,:'ALMST')}
-add_period(1987,9) {TimezonePeriod.new(DateTime.new0(Rational.new!(7341196,3),0,Date::ITALY),DateTime.new0(Rational.new!(7341742,3),0,Date::ITALY),21600,0,:'ALMT')}
-add_period(1988,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(7341742,3),0,Date::ITALY),DateTime.new0(Rational.new!(7342288,3),0,Date::ITALY),21600,3600,:'ALMST')}
-add_period(1988,9) {TimezonePeriod.new(DateTime.new0(Rational.new!(7342288,3),0,Date::ITALY),DateTime.new0(Rational.new!(7342834,3),0,Date::ITALY),21600,0,:'ALMT')}
-add_period(1989,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(7342834,3),0,Date::ITALY),DateTime.new0(Rational.new!(7343380,3),0,Date::ITALY),21600,3600,:'ALMST')}
-add_period(1989,9) {TimezonePeriod.new(DateTime.new0(Rational.new!(7343380,3),0,Date::ITALY),DateTime.new0(Rational.new!(7343926,3),0,Date::ITALY),21600,0,:'ALMT')}
-add_period(1990,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(7343926,3),0,Date::ITALY),DateTime.new0(Rational.new!(7344493,3),0,Date::ITALY),21600,3600,:'ALMST')}
-add_period(1990,9) {TimezonePeriod.new(DateTime.new0(Rational.new!(7344493,3),0,Date::ITALY),DateTime.new0(Rational.new!(9793029,4),0,Date::ITALY),21600,0,:'ALMT')}
-add_period(1990,12) {TimezonePeriod.new(DateTime.new0(Rational.new!(9793029,4),0,Date::ITALY),DateTime.new0(Rational.new!(9794489,4),0,Date::ITALY),21600,0,:'ALMT')}
-add_period(1991,12) {TimezonePeriod.new(DateTime.new0(Rational.new!(9794489,4),0,Date::ITALY),DateTime.new0(Rational.new!(58769045,24),0,Date::ITALY),21600,0,:'ALMT')}
-add_period(1992,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(58769045,24),0,Date::ITALY),DateTime.new0(Rational.new!(14693353,6),0,Date::ITALY),21600,3600,:'ALMST')}
-add_period(1992,9) {TimezonePeriod.new(DateTime.new0(Rational.new!(14693353,6),0,Date::ITALY),DateTime.new0(Rational.new!(7347223,3),0,Date::ITALY),21600,0,:'ALMT')}
-add_period(1993,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(7347223,3),0,Date::ITALY),DateTime.new0(Rational.new!(7347769,3),0,Date::ITALY),21600,3600,:'ALMST')}
-add_period(1993,9) {TimezonePeriod.new(DateTime.new0(Rational.new!(7347769,3),0,Date::ITALY),DateTime.new0(Rational.new!(7348315,3),0,Date::ITALY),21600,0,:'ALMT')}
-add_period(1994,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(7348315,3),0,Date::ITALY),DateTime.new0(Rational.new!(7348861,3),0,Date::ITALY),21600,3600,:'ALMST')}
-add_period(1994,9) {TimezonePeriod.new(DateTime.new0(Rational.new!(7348861,3),0,Date::ITALY),DateTime.new0(Rational.new!(7349407,3),0,Date::ITALY),21600,0,:'ALMT')}
-add_period(1995,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(7349407,3),0,Date::ITALY),DateTime.new0(Rational.new!(7349953,3),0,Date::ITALY),21600,3600,:'ALMST')}
-add_period(1995,9) {TimezonePeriod.new(DateTime.new0(Rational.new!(7349953,3),0,Date::ITALY),DateTime.new0(Rational.new!(7350520,3),0,Date::ITALY),21600,0,:'ALMT')}
-add_period(1996,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(7350520,3),0,Date::ITALY),DateTime.new0(Rational.new!(7351150,3),0,Date::ITALY),21600,3600,:'ALMST')}
-add_period(1996,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(7351150,3),0,Date::ITALY),DateTime.new0(Rational.new!(7351612,3),0,Date::ITALY),21600,0,:'ALMT')}
-add_period(1997,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(7351612,3),0,Date::ITALY),DateTime.new0(Rational.new!(7352242,3),0,Date::ITALY),21600,3600,:'ALMST')}
-add_period(1997,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(7352242,3),0,Date::ITALY),DateTime.new0(Rational.new!(7352704,3),0,Date::ITALY),21600,0,:'ALMT')}
-add_period(1998,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(7352704,3),0,Date::ITALY),DateTime.new0(Rational.new!(7353334,3),0,Date::ITALY),21600,3600,:'ALMST')}
-add_period(1998,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(7353334,3),0,Date::ITALY),DateTime.new0(Rational.new!(7353796,3),0,Date::ITALY),21600,0,:'ALMT')}
-add_period(1999,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(7353796,3),0,Date::ITALY),DateTime.new0(Rational.new!(7354447,3),0,Date::ITALY),21600,3600,:'ALMST')}
-add_period(1999,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(7354447,3),0,Date::ITALY),DateTime.new0(Rational.new!(7354888,3),0,Date::ITALY),21600,0,:'ALMT')}
-add_period(2000,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(7354888,3),0,Date::ITALY),DateTime.new0(Rational.new!(7355539,3),0,Date::ITALY),21600,3600,:'ALMST')}
-add_period(2000,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(7355539,3),0,Date::ITALY),DateTime.new0(Rational.new!(7355980,3),0,Date::ITALY),21600,0,:'ALMT')}
-add_period(2001,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(7355980,3),0,Date::ITALY),DateTime.new0(Rational.new!(7356631,3),0,Date::ITALY),21600,3600,:'ALMST')}
-add_period(2001,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(7356631,3),0,Date::ITALY),DateTime.new0(Rational.new!(7357093,3),0,Date::ITALY),21600,0,:'ALMT')}
-add_period(2002,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(7357093,3),0,Date::ITALY),DateTime.new0(Rational.new!(7357723,3),0,Date::ITALY),21600,3600,:'ALMST')}
-add_period(2002,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(7357723,3),0,Date::ITALY),DateTime.new0(Rational.new!(7358185,3),0,Date::ITALY),21600,0,:'ALMT')}
-add_period(2003,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(7358185,3),0,Date::ITALY),DateTime.new0(Rational.new!(7358815,3),0,Date::ITALY),21600,3600,:'ALMST')}
-add_period(2003,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(7358815,3),0,Date::ITALY),DateTime.new0(Rational.new!(7359277,3),0,Date::ITALY),21600,0,:'ALMT')}
-add_period(2004,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(7359277,3),0,Date::ITALY),DateTime.new0(Rational.new!(7359928,3),0,Date::ITALY),21600,3600,:'ALMST')}
-add_period(2004,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(7359928,3),0,Date::ITALY),DateTime.new0(Rational.new!(9813777,4),0,Date::ITALY),21600,0,:'ALMT')}
-add_period(2005,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(9813777,4),0,Date::ITALY),nil,21600,0,:'ALMT')}
-end
-end
-end
-end
+require 'tzinfo/timezone'
+module TZInfo
+module Definitions #:nodoc:
+module Asia #:nodoc:
+class Almaty < Timezone #:nodoc:
+setup
+set_identifier('Asia/Almaty')
+add_unbounded_start_period {TimezonePeriod.new(nil,DateTime.new0(Rational.new!(1939125829,800),0,Date::ITALY),18468,0,:LMT)}
+add_period(1924,5) {TimezonePeriod.new(DateTime.new0(Rational.new!(1939125829,800),0,Date::ITALY),DateTime.new0(Rational.new!(58227559,24),0,Date::ITALY),18000,0,:ALMT)}
+add_period(1930,6) {TimezonePeriod.new(DateTime.new0(Rational.new!(58227559,24),0,Date::ITALY),354909600,21600,0,:ALMT)}
+add_period(1981,3) {TimezonePeriod.new(354909600,370717200,21600,3600,:ALMST)}
+add_period(1981,9) {TimezonePeriod.new(370717200,386445600,21600,0,:ALMT)}
+add_period(1982,3) {TimezonePeriod.new(386445600,402253200,21600,3600,:ALMST)}
+add_period(1982,9) {TimezonePeriod.new(402253200,417981600,21600,0,:ALMT)}
+add_period(1983,3) {TimezonePeriod.new(417981600,433789200,21600,3600,:ALMST)}
+add_period(1983,9) {TimezonePeriod.new(433789200,449604000,21600,0,:ALMT)}
+add_period(1984,3) {TimezonePeriod.new(449604000,465336000,21600,3600,:ALMST)}
+add_period(1984,9) {TimezonePeriod.new(465336000,481060800,21600,0,:ALMT)}
+add_period(1985,3) {TimezonePeriod.new(481060800,496785600,21600,3600,:ALMST)}
+add_period(1985,9) {TimezonePeriod.new(496785600,512510400,21600,0,:ALMT)}
+add_period(1986,3) {TimezonePeriod.new(512510400,528235200,21600,3600,:ALMST)}
+add_period(1986,9) {TimezonePeriod.new(528235200,543960000,21600,0,:ALMT)}
+add_period(1987,3) {TimezonePeriod.new(543960000,559684800,21600,3600,:ALMST)}
+add_period(1987,9) {TimezonePeriod.new(559684800,575409600,21600,0,:ALMT)}
+add_period(1988,3) {TimezonePeriod.new(575409600,591134400,21600,3600,:ALMST)}
+add_period(1988,9) {TimezonePeriod.new(591134400,606859200,21600,0,:ALMT)}
+add_period(1989,3) {TimezonePeriod.new(606859200,622584000,21600,3600,:ALMST)}
+add_period(1989,9) {TimezonePeriod.new(622584000,638308800,21600,0,:ALMT)}
+add_period(1990,3) {TimezonePeriod.new(638308800,654638400,21600,3600,:ALMST)}
+add_period(1990,9) {TimezonePeriod.new(654638400,701802000,21600,0,:ALMT)}
+add_period(1992,3) {TimezonePeriod.new(701802000,717523200,21600,3600,:ALMST)}
+add_period(1992,9) {TimezonePeriod.new(717523200,733262400,21600,0,:ALMT)}
+add_period(1993,3) {TimezonePeriod.new(733262400,748987200,21600,3600,:ALMST)}
+add_period(1993,9) {TimezonePeriod.new(748987200,764712000,21600,0,:ALMT)}
+add_period(1994,3) {TimezonePeriod.new(764712000,780436800,21600,3600,:ALMST)}
+add_period(1994,9) {TimezonePeriod.new(780436800,796161600,21600,0,:ALMT)}
+add_period(1995,3) {TimezonePeriod.new(796161600,811886400,21600,3600,:ALMST)}
+add_period(1995,9) {TimezonePeriod.new(811886400,828216000,21600,0,:ALMT)}
+add_period(1996,3) {TimezonePeriod.new(828216000,846360000,21600,3600,:ALMST)}
+add_period(1996,10) {TimezonePeriod.new(846360000,859665600,21600,0,:ALMT)}
+add_period(1997,3) {TimezonePeriod.new(859665600,877809600,21600,3600,:ALMST)}
+add_period(1997,10) {TimezonePeriod.new(877809600,891115200,21600,0,:ALMT)}
+add_period(1998,3) {TimezonePeriod.new(891115200,909259200,21600,3600,:ALMST)}
+add_period(1998,10) {TimezonePeriod.new(909259200,922564800,21600,0,:ALMT)}
+add_period(1999,3) {TimezonePeriod.new(922564800,941313600,21600,3600,:ALMST)}
+add_period(1999,10) {TimezonePeriod.new(941313600,954014400,21600,0,:ALMT)}
+add_period(2000,3) {TimezonePeriod.new(954014400,972763200,21600,3600,:ALMST)}
+add_period(2000,10) {TimezonePeriod.new(972763200,985464000,21600,0,:ALMT)}
+add_period(2001,3) {TimezonePeriod.new(985464000,1004212800,21600,3600,:ALMST)}
+add_period(2001,10) {TimezonePeriod.new(1004212800,1017518400,21600,0,:ALMT)}
+add_period(2002,3) {TimezonePeriod.new(1017518400,1035662400,21600,3600,:ALMST)}
+add_period(2002,10) {TimezonePeriod.new(1035662400,1048968000,21600,0,:ALMT)}
+add_period(2003,3) {TimezonePeriod.new(1048968000,1067112000,21600,3600,:ALMST)}
+add_period(2003,10) {TimezonePeriod.new(1067112000,1080417600,21600,0,:ALMT)}
+add_period(2004,3) {TimezonePeriod.new(1080417600,1099166400,21600,3600,:ALMST)}
+add_period(2004,10) {TimezonePeriod.new(1099166400,nil,21600,0,:ALMT)}
+end
+end
+end
+end