lib/tzinfo/definitions/Asia/Singapore.rb in tzinfo-0.0.4 vs lib/tzinfo/definitions/Asia/Singapore.rb in tzinfo-0.1.0
- old
+ new
@@ -3,19 +3,19 @@
module Definitions #:nodoc:
module Asia #:nodoc:
class Singapore < Timezone #:nodoc:
setup
set_identifier('Asia/Singapore')
-add_period(TimezonePeriod.new(nil,DateTime.new(1900,12,31,17,4,35),24925,0,:'LMT'))
-add_period(TimezonePeriod.new(DateTime.new(1900,12,31,17,4,35),DateTime.new(1905,5,31,17,4,35),24925,0,:'SMT'))
-add_period(TimezonePeriod.new(DateTime.new(1905,5,31,17,4,35),DateTime.new(1932,12,31,17,0,0),25200,0,:'MALT'))
-add_period(TimezonePeriod.new(DateTime.new(1932,12,31,17,0,0),DateTime.new(1935,12,31,16,40,0),25200,1200,:'MALST'))
-add_period(TimezonePeriod.new(DateTime.new(1935,12,31,16,40,0),DateTime.new(1941,8,31,16,40,0),26400,0,:'MALT'))
-add_period(TimezonePeriod.new(DateTime.new(1941,8,31,16,40,0),DateTime.new(1942,2,15,16,30,0),27000,0,:'MALT'))
-add_period(TimezonePeriod.new(DateTime.new(1942,2,15,16,30,0),DateTime.new(1945,9,11,15,0,0),32400,0,:'JST'))
-add_period(TimezonePeriod.new(DateTime.new(1945,9,11,15,0,0),DateTime.new(1965,8,8,16,30,0),27000,0,:'MALT'))
-add_period(TimezonePeriod.new(DateTime.new(1965,8,8,16,30,0),DateTime.new(1981,12,31,16,30,0),27000,0,:'SGT'))
-add_period(TimezonePeriod.new(DateTime.new(1981,12,31,16,30,0),nil,28800,0,:'SGT'))
+add_unbounded_start_period {TimezonePeriod.new(nil,DateTime.new0(Rational.new!(8347571291,3456),0,Date::ITALY),24925,0,:'LMT')}
+add_period(1900,12) {TimezonePeriod.new(DateTime.new0(Rational.new!(8347571291,3456),0,Date::ITALY),DateTime.new0(Rational.new!(8353142363,3456),0,Date::ITALY),24925,0,:'SMT')}
+add_period(1905,5) {TimezonePeriod.new(DateTime.new0(Rational.new!(8353142363,3456),0,Date::ITALY),DateTime.new0(Rational.new!(58249757,24),0,Date::ITALY),25200,0,:'MALT')}
+add_period(1932,12) {TimezonePeriod.new(DateTime.new0(Rational.new!(58249757,24),0,Date::ITALY),DateTime.new0(Rational.new!(87414055,36),0,Date::ITALY),25200,1200,:'MALST')}
+add_period(1935,12) {TimezonePeriod.new(DateTime.new0(Rational.new!(87414055,36),0,Date::ITALY),DateTime.new0(Rational.new!(87488575,36),0,Date::ITALY),26400,0,:'MALT')}
+add_period(1941,8) {TimezonePeriod.new(DateTime.new0(Rational.new!(87488575,36),0,Date::ITALY),DateTime.new0(Rational.new!(38886499,16),0,Date::ITALY),27000,0,:'MALT')}
+add_period(1942,2) {TimezonePeriod.new(DateTime.new0(Rational.new!(38886499,16),0,Date::ITALY),DateTime.new0(Rational.new!(19453681,8),0,Date::ITALY),32400,0,:'JST')}
+add_period(1945,9) {TimezonePeriod.new(DateTime.new0(Rational.new!(19453681,8),0,Date::ITALY),DateTime.new0(Rational.new!(39023699,16),0,Date::ITALY),27000,0,:'MALT')}
+add_period(1965,8) {TimezonePeriod.new(DateTime.new0(Rational.new!(39023699,16),0,Date::ITALY),DateTime.new0(Rational.new!(39119523,16),0,Date::ITALY),27000,0,:'SGT')}
+add_period(1981,12) {TimezonePeriod.new(DateTime.new0(Rational.new!(39119523,16),0,Date::ITALY),nil,28800,0,:'SGT')}
end
end
end
end