lib/tzinfo/definitions/Pacific/Port_Moresby.rb in tzinfo-0.0.1 vs lib/tzinfo/definitions/Pacific/Port_Moresby.rb in tzinfo-0.0.2

- old
+ new

@@ -1,20 +1,14 @@ require 'tzinfo/timezone' module TZInfo module Definitions #:nodoc: module Pacific #:nodoc: class Port_Moresby < Timezone #:nodoc: -def initialize - super +setup set_identifier('Pacific/Port_Moresby') -add_period(TimezonePeriod.new(nil,DateTime.new(1879,12,31,14,11,20),35320,0,'LMT')) -add_period(TimezonePeriod.new(DateTime.new(1879,12,31,14,11,20),DateTime.new(1894,12,31,14,11,28),35312,0,'PMMT')) -add_period(TimezonePeriod.new(DateTime.new(1894,12,31,14,11,28),nil,36000,0,'PGT')) -end -@@instance = new -def self.instance - @@instance -end +add_period(TimezonePeriod.new(nil,DateTime.new(1879,12,31,14,11,20),35320,0,:'LMT')) +add_period(TimezonePeriod.new(DateTime.new(1879,12,31,14,11,20),DateTime.new(1894,12,31,14,11,28),35312,0,:'PMMT')) +add_period(TimezonePeriod.new(DateTime.new(1894,12,31,14,11,28),nil,36000,0,:'PGT')) end end end end