lib/tzinfo/definitions/Antarctica/Mawson.rb in tzinfo-0.2.2 vs lib/tzinfo/definitions/Antarctica/Mawson.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 Antarctica #:nodoc: -class Mawson < Timezone #:nodoc: -setup -set_identifier('Antarctica/Mawson') -add_unbounded_start_period {TimezonePeriod.new(nil,DateTime.new0(Rational.new!(4869573,2),0,Date::ITALY),0,0,:zzz)} -add_period(1954,2) {TimezonePeriod.new(DateTime.new0(Rational.new!(4869573,2),0,Date::ITALY),nil,21600,0,:MAWT)} -end -end -end + module Definitions + module Antarctica + module Mawson + include TimezoneDefinition + + timezone 'Antarctica/Mawson' do |tz| + tz.offset :o0, 0, 0, :zzz + tz.offset :o1, 21600, 0, :MAWT + + tz.transition 1954, 2, :o1, 4869573, 2 + end + end + end + end end