lib/tzinfo/definitions/Asia/Vientiane.rb in tzinfo-0.0.4 vs lib/tzinfo/definitions/Asia/Vientiane.rb in tzinfo-0.1.0
- old
+ new
@@ -3,14 +3,14 @@
module Definitions #:nodoc:
module Asia #:nodoc:
class Vientiane < Timezone #:nodoc:
setup
set_identifier('Asia/Vientiane')
-add_period(TimezonePeriod.new(nil,DateTime.new(1906,6,8,17,9,36),24624,0,:'LMT'))
-add_period(TimezonePeriod.new(DateTime.new(1906,6,8,17,9,36),DateTime.new(1911,3,10,16,54,40),25580,0,:'SMT'))
-add_period(TimezonePeriod.new(DateTime.new(1911,3,10,16,54,40),DateTime.new(1912,4,30,17,0,0),25200,0,:'ICT'))
-add_period(TimezonePeriod.new(DateTime.new(1912,4,30,17,0,0),DateTime.new(1931,4,30,16,0,0),28800,0,:'ICT'))
-add_period(TimezonePeriod.new(DateTime.new(1931,4,30,16,0,0),nil,25200,0,:'ICT'))
+add_unbounded_start_period {TimezonePeriod.new(nil,DateTime.new0(Rational.new!(483474043,200),0,Date::ITALY),24624,0,:'LMT')}
+add_period(1906,6) {TimezonePeriod.new(DateTime.new0(Rational.new!(483474043,200),0,Date::ITALY),DateTime.new0(Rational.new!(2612634701,1080),0,Date::ITALY),25580,0,:'SMT')}
+add_period(1911,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(2612634701,1080),0,Date::ITALY),DateTime.new0(Rational.new!(58068557,24),0,Date::ITALY),25200,0,:'ICT')}
+add_period(1912,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(58068557,24),0,Date::ITALY),DateTime.new0(Rational.new!(14558773,6),0,Date::ITALY),28800,0,:'ICT')}
+add_period(1931,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(14558773,6),0,Date::ITALY),nil,25200,0,:'ICT')}
end
end
end
end