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

- old
+ new

@@ -1,20 +1,14 @@ require 'tzinfo/timezone' module TZInfo module Definitions #:nodoc: module Asia #:nodoc: class Kabul < Timezone #:nodoc: -def initialize - super +setup set_identifier('Asia/Kabul') -add_period(TimezonePeriod.new(nil,DateTime.new(1889,12,31,19,23,12),16608,0,'LMT')) -add_period(TimezonePeriod.new(DateTime.new(1889,12,31,19,23,12),DateTime.new(1944,12,31,20,0,0),14400,0,'AFT')) -add_period(TimezonePeriod.new(DateTime.new(1944,12,31,20,0,0),nil,16200,0,'AFT')) -end -@@instance = new -def self.instance - @@instance -end +add_period(TimezonePeriod.new(nil,DateTime.new(1889,12,31,19,23,12),16608,0,:'LMT')) +add_period(TimezonePeriod.new(DateTime.new(1889,12,31,19,23,12),DateTime.new(1944,12,31,20,0,0),14400,0,:'AFT')) +add_period(TimezonePeriod.new(DateTime.new(1944,12,31,20,0,0),nil,16200,0,:'AFT')) end end end end