lib/tzinfo/definitions/Asia/Kuwait.rb in tzinfo-0.2.2 vs lib/tzinfo/definitions/Asia/Kuwait.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 Asia #:nodoc:
-class Kuwait < Timezone #:nodoc:
-setup
-set_identifier('Asia/Kuwait')
-add_unbounded_start_period {TimezonePeriod.new(nil,DateTime.new0(Rational.new!(52558899121,21600),0,Date::ITALY),11516,0,:LMT)}
-add_period(1949,12) {TimezonePeriod.new(DateTime.new0(Rational.new!(52558899121,21600),0,Date::ITALY),nil,10800,0,:AST)}
-end
-end
-end
+ module Definitions
+ module Asia
+ module Kuwait
+ include TimezoneDefinition
+
+ timezone 'Asia/Kuwait' do |tz|
+ tz.offset :o0, 11516, 0, :LMT
+ tz.offset :o1, 10800, 0, :AST
+
+ tz.transition 1949, 12, :o1, 52558899121, 21600
+ end
+ end
+ end
+ end
end