lib/tzinfo/definitions/Asia/Jakarta.rb in tzinfo-0.0.1 vs lib/tzinfo/definitions/Asia/Jakarta.rb in tzinfo-0.0.2

- old
+ new

@@ -1,26 +1,20 @@ require 'tzinfo/timezone' module TZInfo module Definitions #:nodoc: module Asia #:nodoc: class Jakarta < Timezone #:nodoc: -def initialize - super +setup set_identifier('Asia/Jakarta') -add_period(TimezonePeriod.new(nil,DateTime.new(1867,8,9,16,52,48),25632,0,'LMT')) -add_period(TimezonePeriod.new(DateTime.new(1867,8,9,16,52,48),DateTime.new(1923,12,31,16,40,0),25632,0,'JMT')) -add_period(TimezonePeriod.new(DateTime.new(1923,12,31,16,40,0),DateTime.new(1932,10,31,16,40,0),26400,0,'JAVT')) -add_period(TimezonePeriod.new(DateTime.new(1932,10,31,16,40,0),DateTime.new(1942,3,22,16,30,0),27000,0,'WIT')) -add_period(TimezonePeriod.new(DateTime.new(1942,3,22,16,30,0),DateTime.new(1945,7,31,15,0,0),32400,0,'JST')) -add_period(TimezonePeriod.new(DateTime.new(1945,7,31,15,0,0),DateTime.new(1948,4,30,16,30,0),27000,0,'WIT')) -add_period(TimezonePeriod.new(DateTime.new(1948,4,30,16,30,0),DateTime.new(1950,4,30,16,0,0),28800,0,'WIT')) -add_period(TimezonePeriod.new(DateTime.new(1950,4,30,16,0,0),DateTime.new(1963,12,31,16,30,0),27000,0,'WIT')) -add_period(TimezonePeriod.new(DateTime.new(1963,12,31,16,30,0),nil,25200,0,'WIT')) -end -@@instance = new -def self.instance - @@instance -end +add_period(TimezonePeriod.new(nil,DateTime.new(1867,8,9,16,52,48),25632,0,:'LMT')) +add_period(TimezonePeriod.new(DateTime.new(1867,8,9,16,52,48),DateTime.new(1923,12,31,16,40,0),25632,0,:'JMT')) +add_period(TimezonePeriod.new(DateTime.new(1923,12,31,16,40,0),DateTime.new(1932,10,31,16,40,0),26400,0,:'JAVT')) +add_period(TimezonePeriod.new(DateTime.new(1932,10,31,16,40,0),DateTime.new(1942,3,22,16,30,0),27000,0,:'WIT')) +add_period(TimezonePeriod.new(DateTime.new(1942,3,22,16,30,0),DateTime.new(1945,7,31,15,0,0),32400,0,:'JST')) +add_period(TimezonePeriod.new(DateTime.new(1945,7,31,15,0,0),DateTime.new(1948,4,30,16,30,0),27000,0,:'WIT')) +add_period(TimezonePeriod.new(DateTime.new(1948,4,30,16,30,0),DateTime.new(1950,4,30,16,0,0),28800,0,:'WIT')) +add_period(TimezonePeriod.new(DateTime.new(1950,4,30,16,0,0),DateTime.new(1963,12,31,16,30,0),27000,0,:'WIT')) +add_period(TimezonePeriod.new(DateTime.new(1963,12,31,16,30,0),nil,25200,0,:'WIT')) end end end end