lib/tzinfo/definitions/Atlantic/South_Georgia.rb in tzinfo-0.2.2 vs lib/tzinfo/definitions/Atlantic/South_Georgia.rb in tzinfo-0.3.0

- old
+ new

@@ -1,13 +1,18 @@ -require 'tzinfo/timezone' +require 'tzinfo/timezone_definition' + module TZInfo -module Definitions #:nodoc: -module Atlantic #:nodoc: -class South_Georgia < Timezone #:nodoc: -setup -set_identifier('Atlantic/South_Georgia') -add_unbounded_start_period {TimezonePeriod.new(nil,DateTime.new0(Rational.new!(1627673806,675),0,Date::ITALY),-8768,0,:LMT)} -add_period(1890,1) {TimezonePeriod.new(DateTime.new0(Rational.new!(1627673806,675),0,Date::ITALY),nil,-7200,0,:GST)} -end -end -end + module Definitions + module Atlantic + module South_Georgia + include TimezoneDefinition + + timezone 'Atlantic/South_Georgia' do |tz| + tz.offset :o0, -8768, 0, :LMT + tz.offset :o1, -7200, 0, :GST + + tz.transition 1890, 1, :o1, 1627673806, 675 + end + end + end + end end