tzinfo 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of tzinfo might be problematic. Click here for more details.

Files changed (34) hide show
  1. data/CHANGES +17 -0
  2. data/README +9 -6
  3. data/Rakefile +90 -6
  4. data/lib/tzinfo.rb +5 -0
  5. data/lib/tzinfo/countries/CA.rb +1 -0
  6. data/lib/tzinfo/countries/US.rb +2 -0
  7. data/lib/tzinfo/definitions/America/Cambridge_Bay.rb +79 -79
  8. data/lib/tzinfo/definitions/America/Glace_Bay.rb +79 -79
  9. data/lib/tzinfo/definitions/America/Halifax.rb +79 -79
  10. data/lib/tzinfo/definitions/America/Indiana/Knox.rb +81 -82
  11. data/lib/tzinfo/definitions/America/Indiana/Petersburg.rb +146 -0
  12. data/lib/tzinfo/definitions/America/Indiana/Vincennes.rb +133 -0
  13. data/lib/tzinfo/definitions/America/Iqaluit.rb +79 -79
  14. data/lib/tzinfo/definitions/America/Miquelon.rb +79 -79
  15. data/lib/tzinfo/definitions/America/Moncton.rb +239 -0
  16. data/lib/tzinfo/definitions/America/Montreal.rb +79 -79
  17. data/lib/tzinfo/definitions/America/Nipigon.rb +79 -79
  18. data/lib/tzinfo/definitions/America/Pangnirtung.rb +79 -79
  19. data/lib/tzinfo/definitions/America/Rainy_River.rb +79 -79
  20. data/lib/tzinfo/definitions/America/Rankin_Inlet.rb +79 -79
  21. data/lib/tzinfo/definitions/America/Thunder_Bay.rb +79 -79
  22. data/lib/tzinfo/definitions/America/Toronto.rb +79 -79
  23. data/lib/tzinfo/definitions/America/Winnipeg.rb +79 -79
  24. data/lib/tzinfo/definitions/Asia/Gaza.rb +82 -82
  25. data/lib/tzinfo/definitions/CST6CDT.rb +167 -2
  26. data/lib/tzinfo/definitions/EST.rb +3 -2
  27. data/lib/tzinfo/definitions/EST5EDT.rb +167 -2
  28. data/lib/tzinfo/definitions/HST.rb +3 -2
  29. data/lib/tzinfo/definitions/MST.rb +3 -2
  30. data/lib/tzinfo/definitions/MST7MDT.rb +167 -2
  31. data/lib/tzinfo/definitions/PST8PDT.rb +167 -2
  32. data/lib/tzinfo/timezone.rb +10 -0
  33. data/test/tc_timezone.rb +16 -2
  34. metadata +6 -7
@@ -1,9 +1,10 @@
1
1
  require 'tzinfo/timezone'
2
- require 'tzinfo/definitions/Pacific/Honolulu'
3
2
  module TZInfo
4
3
  module Definitions #:nodoc:
5
- class HST < Definitions::Pacific::Honolulu #:nodoc:
4
+ class HST < Timezone #:nodoc:
5
+ setup
6
6
  set_identifier('HST')
7
+ add_unbounded_start_period {TimezonePeriod.new(nil,nil,-36000,0,:'HST')}
7
8
  end
8
9
  end
9
10
  end
@@ -1,9 +1,10 @@
1
1
  require 'tzinfo/timezone'
2
- require 'tzinfo/definitions/America/Phoenix'
3
2
  module TZInfo
4
3
  module Definitions #:nodoc:
5
- class MST < Definitions::America::Phoenix #:nodoc:
4
+ class MST < Timezone #:nodoc:
5
+ setup
6
6
  set_identifier('MST')
7
+ add_unbounded_start_period {TimezonePeriod.new(nil,nil,-25200,0,:'MST')}
7
8
  end
8
9
  end
9
10
  end
@@ -1,9 +1,174 @@
1
1
  require 'tzinfo/timezone'
2
- require 'tzinfo/definitions/America/Denver'
3
2
  module TZInfo
4
3
  module Definitions #:nodoc:
5
- class MST7MDT < Definitions::America::Denver #:nodoc:
4
+ class MST7MDT < Timezone #:nodoc:
5
+ setup
6
6
  set_identifier('MST7MDT')
7
+ add_period(1850,1) {TimezonePeriod.new(DateTime.new0(Rational.new!(4793517,2),0,Date::ITALY),DateTime.new0(Rational.new!(19373471,8),0,Date::ITALY),-25200,0,:'MT')}
8
+ add_period(1918,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19373471,8),0,Date::ITALY),DateTime.new0(Rational.new!(14531363,6),0,Date::ITALY),-25200,3600,:'MDT')}
9
+ add_period(1918,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14531363,6),0,Date::ITALY),DateTime.new0(Rational.new!(19376383,8),0,Date::ITALY),-25200,0,:'MST')}
10
+ add_period(1919,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19376383,8),0,Date::ITALY),DateTime.new0(Rational.new!(14533547,6),0,Date::ITALY),-25200,3600,:'MDT')}
11
+ add_period(1919,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14533547,6),0,Date::ITALY),DateTime.new0(Rational.new!(19443199,8),0,Date::ITALY),-25200,0,:'MST')}
12
+ add_period(1942,2) {TimezonePeriod.new(DateTime.new0(Rational.new!(19443199,8),0,Date::ITALY),DateTime.new0(Rational.new!(14590373,6),0,Date::ITALY),-25200,3600,:'MWT')}
13
+ add_period(1945,9) {TimezonePeriod.new(DateTime.new0(Rational.new!(14590373,6),0,Date::ITALY),DateTime.new0(Rational.new!(19516887,8),0,Date::ITALY),-25200,0,:'MST')}
14
+ add_period(1967,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(19516887,8),0,Date::ITALY),DateTime.new0(Rational.new!(14638757,6),0,Date::ITALY),-25200,3600,:'MDT')}
15
+ add_period(1967,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14638757,6),0,Date::ITALY),DateTime.new0(Rational.new!(19519799,8),0,Date::ITALY),-25200,0,:'MST')}
16
+ add_period(1968,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(19519799,8),0,Date::ITALY),DateTime.new0(Rational.new!(14640941,6),0,Date::ITALY),-25200,3600,:'MDT')}
17
+ add_period(1968,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14640941,6),0,Date::ITALY),DateTime.new0(Rational.new!(19522711,8),0,Date::ITALY),-25200,0,:'MST')}
18
+ add_period(1969,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(19522711,8),0,Date::ITALY),DateTime.new0(Rational.new!(14643125,6),0,Date::ITALY),-25200,3600,:'MDT')}
19
+ add_period(1969,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14643125,6),0,Date::ITALY),DateTime.new0(Rational.new!(19525623,8),0,Date::ITALY),-25200,0,:'MST')}
20
+ add_period(1970,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(19525623,8),0,Date::ITALY),DateTime.new0(Rational.new!(14645309,6),0,Date::ITALY),-25200,3600,:'MDT')}
21
+ add_period(1970,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14645309,6),0,Date::ITALY),DateTime.new0(Rational.new!(19528535,8),0,Date::ITALY),-25200,0,:'MST')}
22
+ add_period(1971,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(19528535,8),0,Date::ITALY),DateTime.new0(Rational.new!(14647535,6),0,Date::ITALY),-25200,3600,:'MDT')}
23
+ add_period(1971,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14647535,6),0,Date::ITALY),DateTime.new0(Rational.new!(19531503,8),0,Date::ITALY),-25200,0,:'MST')}
24
+ add_period(1972,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(19531503,8),0,Date::ITALY),DateTime.new0(Rational.new!(14649719,6),0,Date::ITALY),-25200,3600,:'MDT')}
25
+ add_period(1972,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14649719,6),0,Date::ITALY),DateTime.new0(Rational.new!(19534415,8),0,Date::ITALY),-25200,0,:'MST')}
26
+ add_period(1973,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(19534415,8),0,Date::ITALY),DateTime.new0(Rational.new!(14651903,6),0,Date::ITALY),-25200,3600,:'MDT')}
27
+ add_period(1973,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14651903,6),0,Date::ITALY),DateTime.new0(Rational.new!(19536431,8),0,Date::ITALY),-25200,0,:'MST')}
28
+ add_period(1974,1) {TimezonePeriod.new(DateTime.new0(Rational.new!(19536431,8),0,Date::ITALY),DateTime.new0(Rational.new!(14654087,6),0,Date::ITALY),-25200,3600,:'MDT')}
29
+ add_period(1974,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14654087,6),0,Date::ITALY),DateTime.new0(Rational.new!(19539735,8),0,Date::ITALY),-25200,0,:'MST')}
30
+ add_period(1975,2) {TimezonePeriod.new(DateTime.new0(Rational.new!(19539735,8),0,Date::ITALY),DateTime.new0(Rational.new!(14656271,6),0,Date::ITALY),-25200,3600,:'MDT')}
31
+ add_period(1975,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14656271,6),0,Date::ITALY),DateTime.new0(Rational.new!(19543151,8),0,Date::ITALY),-25200,0,:'MST')}
32
+ add_period(1976,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(19543151,8),0,Date::ITALY),DateTime.new0(Rational.new!(14658497,6),0,Date::ITALY),-25200,3600,:'MDT')}
33
+ add_period(1976,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14658497,6),0,Date::ITALY),DateTime.new0(Rational.new!(19546063,8),0,Date::ITALY),-25200,0,:'MST')}
34
+ add_period(1977,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(19546063,8),0,Date::ITALY),DateTime.new0(Rational.new!(14660681,6),0,Date::ITALY),-25200,3600,:'MDT')}
35
+ add_period(1977,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14660681,6),0,Date::ITALY),DateTime.new0(Rational.new!(19549031,8),0,Date::ITALY),-25200,0,:'MST')}
36
+ add_period(1978,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(19549031,8),0,Date::ITALY),DateTime.new0(Rational.new!(14662865,6),0,Date::ITALY),-25200,3600,:'MDT')}
37
+ add_period(1978,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14662865,6),0,Date::ITALY),DateTime.new0(Rational.new!(19551943,8),0,Date::ITALY),-25200,0,:'MST')}
38
+ add_period(1979,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(19551943,8),0,Date::ITALY),DateTime.new0(Rational.new!(14665049,6),0,Date::ITALY),-25200,3600,:'MDT')}
39
+ add_period(1979,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14665049,6),0,Date::ITALY),DateTime.new0(Rational.new!(19554855,8),0,Date::ITALY),-25200,0,:'MST')}
40
+ add_period(1980,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(19554855,8),0,Date::ITALY),DateTime.new0(Rational.new!(14667233,6),0,Date::ITALY),-25200,3600,:'MDT')}
41
+ add_period(1980,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14667233,6),0,Date::ITALY),DateTime.new0(Rational.new!(19557767,8),0,Date::ITALY),-25200,0,:'MST')}
42
+ add_period(1981,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(19557767,8),0,Date::ITALY),DateTime.new0(Rational.new!(14669417,6),0,Date::ITALY),-25200,3600,:'MDT')}
43
+ add_period(1981,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14669417,6),0,Date::ITALY),DateTime.new0(Rational.new!(19560679,8),0,Date::ITALY),-25200,0,:'MST')}
44
+ add_period(1982,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(19560679,8),0,Date::ITALY),DateTime.new0(Rational.new!(14671643,6),0,Date::ITALY),-25200,3600,:'MDT')}
45
+ add_period(1982,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14671643,6),0,Date::ITALY),DateTime.new0(Rational.new!(19563591,8),0,Date::ITALY),-25200,0,:'MST')}
46
+ add_period(1983,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(19563591,8),0,Date::ITALY),DateTime.new0(Rational.new!(14673827,6),0,Date::ITALY),-25200,3600,:'MDT')}
47
+ add_period(1983,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14673827,6),0,Date::ITALY),DateTime.new0(Rational.new!(19566559,8),0,Date::ITALY),-25200,0,:'MST')}
48
+ add_period(1984,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(19566559,8),0,Date::ITALY),DateTime.new0(Rational.new!(14676011,6),0,Date::ITALY),-25200,3600,:'MDT')}
49
+ add_period(1984,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14676011,6),0,Date::ITALY),DateTime.new0(Rational.new!(19569471,8),0,Date::ITALY),-25200,0,:'MST')}
50
+ add_period(1985,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(19569471,8),0,Date::ITALY),DateTime.new0(Rational.new!(14678195,6),0,Date::ITALY),-25200,3600,:'MDT')}
51
+ add_period(1985,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14678195,6),0,Date::ITALY),DateTime.new0(Rational.new!(19572383,8),0,Date::ITALY),-25200,0,:'MST')}
52
+ add_period(1986,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(19572383,8),0,Date::ITALY),DateTime.new0(Rational.new!(14680379,6),0,Date::ITALY),-25200,3600,:'MDT')}
53
+ add_period(1986,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14680379,6),0,Date::ITALY),DateTime.new0(Rational.new!(19575127,8),0,Date::ITALY),-25200,0,:'MST')}
54
+ add_period(1987,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(19575127,8),0,Date::ITALY),DateTime.new0(Rational.new!(14682563,6),0,Date::ITALY),-25200,3600,:'MDT')}
55
+ add_period(1987,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14682563,6),0,Date::ITALY),DateTime.new0(Rational.new!(19578039,8),0,Date::ITALY),-25200,0,:'MST')}
56
+ add_period(1988,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(19578039,8),0,Date::ITALY),DateTime.new0(Rational.new!(14684789,6),0,Date::ITALY),-25200,3600,:'MDT')}
57
+ add_period(1988,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14684789,6),0,Date::ITALY),DateTime.new0(Rational.new!(19580951,8),0,Date::ITALY),-25200,0,:'MST')}
58
+ add_period(1989,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(19580951,8),0,Date::ITALY),DateTime.new0(Rational.new!(14686973,6),0,Date::ITALY),-25200,3600,:'MDT')}
59
+ add_period(1989,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14686973,6),0,Date::ITALY),DateTime.new0(Rational.new!(19583863,8),0,Date::ITALY),-25200,0,:'MST')}
60
+ add_period(1990,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(19583863,8),0,Date::ITALY),DateTime.new0(Rational.new!(14689157,6),0,Date::ITALY),-25200,3600,:'MDT')}
61
+ add_period(1990,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14689157,6),0,Date::ITALY),DateTime.new0(Rational.new!(19586831,8),0,Date::ITALY),-25200,0,:'MST')}
62
+ add_period(1991,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(19586831,8),0,Date::ITALY),DateTime.new0(Rational.new!(14691341,6),0,Date::ITALY),-25200,3600,:'MDT')}
63
+ add_period(1991,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14691341,6),0,Date::ITALY),DateTime.new0(Rational.new!(19589743,8),0,Date::ITALY),-25200,0,:'MST')}
64
+ add_period(1992,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(19589743,8),0,Date::ITALY),DateTime.new0(Rational.new!(14693525,6),0,Date::ITALY),-25200,3600,:'MDT')}
65
+ add_period(1992,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14693525,6),0,Date::ITALY),DateTime.new0(Rational.new!(19592655,8),0,Date::ITALY),-25200,0,:'MST')}
66
+ add_period(1993,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(19592655,8),0,Date::ITALY),DateTime.new0(Rational.new!(14695751,6),0,Date::ITALY),-25200,3600,:'MDT')}
67
+ add_period(1993,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14695751,6),0,Date::ITALY),DateTime.new0(Rational.new!(19595567,8),0,Date::ITALY),-25200,0,:'MST')}
68
+ add_period(1994,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(19595567,8),0,Date::ITALY),DateTime.new0(Rational.new!(14697935,6),0,Date::ITALY),-25200,3600,:'MDT')}
69
+ add_period(1994,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14697935,6),0,Date::ITALY),DateTime.new0(Rational.new!(19598479,8),0,Date::ITALY),-25200,0,:'MST')}
70
+ add_period(1995,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(19598479,8),0,Date::ITALY),DateTime.new0(Rational.new!(14700119,6),0,Date::ITALY),-25200,3600,:'MDT')}
71
+ add_period(1995,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14700119,6),0,Date::ITALY),DateTime.new0(Rational.new!(19601447,8),0,Date::ITALY),-25200,0,:'MST')}
72
+ add_period(1996,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(19601447,8),0,Date::ITALY),DateTime.new0(Rational.new!(14702303,6),0,Date::ITALY),-25200,3600,:'MDT')}
73
+ add_period(1996,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14702303,6),0,Date::ITALY),DateTime.new0(Rational.new!(19604359,8),0,Date::ITALY),-25200,0,:'MST')}
74
+ add_period(1997,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(19604359,8),0,Date::ITALY),DateTime.new0(Rational.new!(14704487,6),0,Date::ITALY),-25200,3600,:'MDT')}
75
+ add_period(1997,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14704487,6),0,Date::ITALY),DateTime.new0(Rational.new!(19607271,8),0,Date::ITALY),-25200,0,:'MST')}
76
+ add_period(1998,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(19607271,8),0,Date::ITALY),DateTime.new0(Rational.new!(14706671,6),0,Date::ITALY),-25200,3600,:'MDT')}
77
+ add_period(1998,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14706671,6),0,Date::ITALY),DateTime.new0(Rational.new!(19610183,8),0,Date::ITALY),-25200,0,:'MST')}
78
+ add_period(1999,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(19610183,8),0,Date::ITALY),DateTime.new0(Rational.new!(14708897,6),0,Date::ITALY),-25200,3600,:'MDT')}
79
+ add_period(1999,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14708897,6),0,Date::ITALY),DateTime.new0(Rational.new!(19613095,8),0,Date::ITALY),-25200,0,:'MST')}
80
+ add_period(2000,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(19613095,8),0,Date::ITALY),DateTime.new0(Rational.new!(14711081,6),0,Date::ITALY),-25200,3600,:'MDT')}
81
+ add_period(2000,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14711081,6),0,Date::ITALY),DateTime.new0(Rational.new!(19616007,8),0,Date::ITALY),-25200,0,:'MST')}
82
+ add_period(2001,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(19616007,8),0,Date::ITALY),DateTime.new0(Rational.new!(14713265,6),0,Date::ITALY),-25200,3600,:'MDT')}
83
+ add_period(2001,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14713265,6),0,Date::ITALY),DateTime.new0(Rational.new!(19618975,8),0,Date::ITALY),-25200,0,:'MST')}
84
+ add_period(2002,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(19618975,8),0,Date::ITALY),DateTime.new0(Rational.new!(14715449,6),0,Date::ITALY),-25200,3600,:'MDT')}
85
+ add_period(2002,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14715449,6),0,Date::ITALY),DateTime.new0(Rational.new!(19621887,8),0,Date::ITALY),-25200,0,:'MST')}
86
+ add_period(2003,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(19621887,8),0,Date::ITALY),DateTime.new0(Rational.new!(14717633,6),0,Date::ITALY),-25200,3600,:'MDT')}
87
+ add_period(2003,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14717633,6),0,Date::ITALY),DateTime.new0(Rational.new!(19624799,8),0,Date::ITALY),-25200,0,:'MST')}
88
+ add_period(2004,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(19624799,8),0,Date::ITALY),DateTime.new0(Rational.new!(14719859,6),0,Date::ITALY),-25200,3600,:'MDT')}
89
+ add_period(2004,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14719859,6),0,Date::ITALY),DateTime.new0(Rational.new!(19627711,8),0,Date::ITALY),-25200,0,:'MST')}
90
+ add_period(2005,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(19627711,8),0,Date::ITALY),DateTime.new0(Rational.new!(14722043,6),0,Date::ITALY),-25200,3600,:'MDT')}
91
+ add_period(2005,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14722043,6),0,Date::ITALY),DateTime.new0(Rational.new!(19630623,8),0,Date::ITALY),-25200,0,:'MST')}
92
+ add_period(2006,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(19630623,8),0,Date::ITALY),DateTime.new0(Rational.new!(14724227,6),0,Date::ITALY),-25200,3600,:'MDT')}
93
+ add_period(2006,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(14724227,6),0,Date::ITALY),DateTime.new0(Rational.new!(19633367,8),0,Date::ITALY),-25200,0,:'MST')}
94
+ add_period(2007,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19633367,8),0,Date::ITALY),DateTime.new0(Rational.new!(14726453,6),0,Date::ITALY),-25200,3600,:'MDT')}
95
+ add_period(2007,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(14726453,6),0,Date::ITALY),DateTime.new0(Rational.new!(19636279,8),0,Date::ITALY),-25200,0,:'MST')}
96
+ add_period(2008,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19636279,8),0,Date::ITALY),DateTime.new0(Rational.new!(14728637,6),0,Date::ITALY),-25200,3600,:'MDT')}
97
+ add_period(2008,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(14728637,6),0,Date::ITALY),DateTime.new0(Rational.new!(19639191,8),0,Date::ITALY),-25200,0,:'MST')}
98
+ add_period(2009,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19639191,8),0,Date::ITALY),DateTime.new0(Rational.new!(14730821,6),0,Date::ITALY),-25200,3600,:'MDT')}
99
+ add_period(2009,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(14730821,6),0,Date::ITALY),DateTime.new0(Rational.new!(19642159,8),0,Date::ITALY),-25200,0,:'MST')}
100
+ add_period(2010,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19642159,8),0,Date::ITALY),DateTime.new0(Rational.new!(14733047,6),0,Date::ITALY),-25200,3600,:'MDT')}
101
+ add_period(2010,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(14733047,6),0,Date::ITALY),DateTime.new0(Rational.new!(19645071,8),0,Date::ITALY),-25200,0,:'MST')}
102
+ add_period(2011,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19645071,8),0,Date::ITALY),DateTime.new0(Rational.new!(14735231,6),0,Date::ITALY),-25200,3600,:'MDT')}
103
+ add_period(2011,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(14735231,6),0,Date::ITALY),DateTime.new0(Rational.new!(19647983,8),0,Date::ITALY),-25200,0,:'MST')}
104
+ add_period(2012,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19647983,8),0,Date::ITALY),DateTime.new0(Rational.new!(14737415,6),0,Date::ITALY),-25200,3600,:'MDT')}
105
+ add_period(2012,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(14737415,6),0,Date::ITALY),DateTime.new0(Rational.new!(19650895,8),0,Date::ITALY),-25200,0,:'MST')}
106
+ add_period(2013,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19650895,8),0,Date::ITALY),DateTime.new0(Rational.new!(14739599,6),0,Date::ITALY),-25200,3600,:'MDT')}
107
+ add_period(2013,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(14739599,6),0,Date::ITALY),DateTime.new0(Rational.new!(19653807,8),0,Date::ITALY),-25200,0,:'MST')}
108
+ add_period(2014,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19653807,8),0,Date::ITALY),DateTime.new0(Rational.new!(14741783,6),0,Date::ITALY),-25200,3600,:'MDT')}
109
+ add_period(2014,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(14741783,6),0,Date::ITALY),DateTime.new0(Rational.new!(19656719,8),0,Date::ITALY),-25200,0,:'MST')}
110
+ add_period(2015,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19656719,8),0,Date::ITALY),DateTime.new0(Rational.new!(14743967,6),0,Date::ITALY),-25200,3600,:'MDT')}
111
+ add_period(2015,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(14743967,6),0,Date::ITALY),DateTime.new0(Rational.new!(19659687,8),0,Date::ITALY),-25200,0,:'MST')}
112
+ add_period(2016,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19659687,8),0,Date::ITALY),DateTime.new0(Rational.new!(14746193,6),0,Date::ITALY),-25200,3600,:'MDT')}
113
+ add_period(2016,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(14746193,6),0,Date::ITALY),DateTime.new0(Rational.new!(19662599,8),0,Date::ITALY),-25200,0,:'MST')}
114
+ add_period(2017,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19662599,8),0,Date::ITALY),DateTime.new0(Rational.new!(14748377,6),0,Date::ITALY),-25200,3600,:'MDT')}
115
+ add_period(2017,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(14748377,6),0,Date::ITALY),DateTime.new0(Rational.new!(19665511,8),0,Date::ITALY),-25200,0,:'MST')}
116
+ add_period(2018,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19665511,8),0,Date::ITALY),DateTime.new0(Rational.new!(14750561,6),0,Date::ITALY),-25200,3600,:'MDT')}
117
+ add_period(2018,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(14750561,6),0,Date::ITALY),DateTime.new0(Rational.new!(19668423,8),0,Date::ITALY),-25200,0,:'MST')}
118
+ add_period(2019,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19668423,8),0,Date::ITALY),DateTime.new0(Rational.new!(14752745,6),0,Date::ITALY),-25200,3600,:'MDT')}
119
+ add_period(2019,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(14752745,6),0,Date::ITALY),DateTime.new0(Rational.new!(19671335,8),0,Date::ITALY),-25200,0,:'MST')}
120
+ add_period(2020,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19671335,8),0,Date::ITALY),DateTime.new0(Rational.new!(14754929,6),0,Date::ITALY),-25200,3600,:'MDT')}
121
+ add_period(2020,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(14754929,6),0,Date::ITALY),DateTime.new0(Rational.new!(19674303,8),0,Date::ITALY),-25200,0,:'MST')}
122
+ add_period(2021,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19674303,8),0,Date::ITALY),DateTime.new0(Rational.new!(14757155,6),0,Date::ITALY),-25200,3600,:'MDT')}
123
+ add_period(2021,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(14757155,6),0,Date::ITALY),DateTime.new0(Rational.new!(19677215,8),0,Date::ITALY),-25200,0,:'MST')}
124
+ add_period(2022,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19677215,8),0,Date::ITALY),DateTime.new0(Rational.new!(14759339,6),0,Date::ITALY),-25200,3600,:'MDT')}
125
+ add_period(2022,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(14759339,6),0,Date::ITALY),DateTime.new0(Rational.new!(19680127,8),0,Date::ITALY),-25200,0,:'MST')}
126
+ add_period(2023,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19680127,8),0,Date::ITALY),DateTime.new0(Rational.new!(14761523,6),0,Date::ITALY),-25200,3600,:'MDT')}
127
+ add_period(2023,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(14761523,6),0,Date::ITALY),DateTime.new0(Rational.new!(19683039,8),0,Date::ITALY),-25200,0,:'MST')}
128
+ add_period(2024,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19683039,8),0,Date::ITALY),DateTime.new0(Rational.new!(14763707,6),0,Date::ITALY),-25200,3600,:'MDT')}
129
+ add_period(2024,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(14763707,6),0,Date::ITALY),DateTime.new0(Rational.new!(19685951,8),0,Date::ITALY),-25200,0,:'MST')}
130
+ add_period(2025,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19685951,8),0,Date::ITALY),DateTime.new0(Rational.new!(14765891,6),0,Date::ITALY),-25200,3600,:'MDT')}
131
+ add_period(2025,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(14765891,6),0,Date::ITALY),DateTime.new0(Rational.new!(19688863,8),0,Date::ITALY),-25200,0,:'MST')}
132
+ add_period(2026,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19688863,8),0,Date::ITALY),DateTime.new0(Rational.new!(14768075,6),0,Date::ITALY),-25200,3600,:'MDT')}
133
+ add_period(2026,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(14768075,6),0,Date::ITALY),DateTime.new0(Rational.new!(19691831,8),0,Date::ITALY),-25200,0,:'MST')}
134
+ add_period(2027,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19691831,8),0,Date::ITALY),DateTime.new0(Rational.new!(14770301,6),0,Date::ITALY),-25200,3600,:'MDT')}
135
+ add_period(2027,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(14770301,6),0,Date::ITALY),DateTime.new0(Rational.new!(19694743,8),0,Date::ITALY),-25200,0,:'MST')}
136
+ add_period(2028,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19694743,8),0,Date::ITALY),DateTime.new0(Rational.new!(14772485,6),0,Date::ITALY),-25200,3600,:'MDT')}
137
+ add_period(2028,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(14772485,6),0,Date::ITALY),DateTime.new0(Rational.new!(19697655,8),0,Date::ITALY),-25200,0,:'MST')}
138
+ add_period(2029,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19697655,8),0,Date::ITALY),DateTime.new0(Rational.new!(14774669,6),0,Date::ITALY),-25200,3600,:'MDT')}
139
+ add_period(2029,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(14774669,6),0,Date::ITALY),DateTime.new0(Rational.new!(19700567,8),0,Date::ITALY),-25200,0,:'MST')}
140
+ add_period(2030,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19700567,8),0,Date::ITALY),DateTime.new0(Rational.new!(14776853,6),0,Date::ITALY),-25200,3600,:'MDT')}
141
+ add_period(2030,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(14776853,6),0,Date::ITALY),DateTime.new0(Rational.new!(19703479,8),0,Date::ITALY),-25200,0,:'MST')}
142
+ add_period(2031,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19703479,8),0,Date::ITALY),DateTime.new0(Rational.new!(14779037,6),0,Date::ITALY),-25200,3600,:'MDT')}
143
+ add_period(2031,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(14779037,6),0,Date::ITALY),DateTime.new0(Rational.new!(19706447,8),0,Date::ITALY),-25200,0,:'MST')}
144
+ add_period(2032,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19706447,8),0,Date::ITALY),DateTime.new0(Rational.new!(14781263,6),0,Date::ITALY),-25200,3600,:'MDT')}
145
+ add_period(2032,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(14781263,6),0,Date::ITALY),DateTime.new0(Rational.new!(19709359,8),0,Date::ITALY),-25200,0,:'MST')}
146
+ add_period(2033,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19709359,8),0,Date::ITALY),DateTime.new0(Rational.new!(14783447,6),0,Date::ITALY),-25200,3600,:'MDT')}
147
+ add_period(2033,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(14783447,6),0,Date::ITALY),DateTime.new0(Rational.new!(19712271,8),0,Date::ITALY),-25200,0,:'MST')}
148
+ add_period(2034,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19712271,8),0,Date::ITALY),DateTime.new0(Rational.new!(14785631,6),0,Date::ITALY),-25200,3600,:'MDT')}
149
+ add_period(2034,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(14785631,6),0,Date::ITALY),DateTime.new0(Rational.new!(19715183,8),0,Date::ITALY),-25200,0,:'MST')}
150
+ add_period(2035,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19715183,8),0,Date::ITALY),DateTime.new0(Rational.new!(14787815,6),0,Date::ITALY),-25200,3600,:'MDT')}
151
+ add_period(2035,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(14787815,6),0,Date::ITALY),DateTime.new0(Rational.new!(19718095,8),0,Date::ITALY),-25200,0,:'MST')}
152
+ add_period(2036,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19718095,8),0,Date::ITALY),DateTime.new0(Rational.new!(14789999,6),0,Date::ITALY),-25200,3600,:'MDT')}
153
+ add_period(2036,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(14789999,6),0,Date::ITALY),DateTime.new0(Rational.new!(19721007,8),0,Date::ITALY),-25200,0,:'MST')}
154
+ add_period(2037,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19721007,8),0,Date::ITALY),DateTime.new0(Rational.new!(14792183,6),0,Date::ITALY),-25200,3600,:'MDT')}
155
+ add_period(2037,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(14792183,6),0,Date::ITALY),DateTime.new0(Rational.new!(19723975,8),0,Date::ITALY),-25200,0,:'MST')}
156
+ add_period(2038,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19723975,8),0,Date::ITALY),DateTime.new0(Rational.new!(14794409,6),0,Date::ITALY),-25200,3600,:'MDT')}
157
+ add_period(2038,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(14794409,6),0,Date::ITALY),DateTime.new0(Rational.new!(19726887,8),0,Date::ITALY),-25200,0,:'MST')}
158
+ add_period(2039,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19726887,8),0,Date::ITALY),DateTime.new0(Rational.new!(14796593,6),0,Date::ITALY),-25200,3600,:'MDT')}
159
+ add_period(2039,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(14796593,6),0,Date::ITALY),DateTime.new0(Rational.new!(19729799,8),0,Date::ITALY),-25200,0,:'MST')}
160
+ add_period(2040,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19729799,8),0,Date::ITALY),DateTime.new0(Rational.new!(14798777,6),0,Date::ITALY),-25200,3600,:'MDT')}
161
+ add_period(2040,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(14798777,6),0,Date::ITALY),DateTime.new0(Rational.new!(19732711,8),0,Date::ITALY),-25200,0,:'MST')}
162
+ add_period(2041,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19732711,8),0,Date::ITALY),DateTime.new0(Rational.new!(14800961,6),0,Date::ITALY),-25200,3600,:'MDT')}
163
+ add_period(2041,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(14800961,6),0,Date::ITALY),DateTime.new0(Rational.new!(19735623,8),0,Date::ITALY),-25200,0,:'MST')}
164
+ add_period(2042,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19735623,8),0,Date::ITALY),DateTime.new0(Rational.new!(14803145,6),0,Date::ITALY),-25200,3600,:'MDT')}
165
+ add_period(2042,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(14803145,6),0,Date::ITALY),DateTime.new0(Rational.new!(19738535,8),0,Date::ITALY),-25200,0,:'MST')}
166
+ add_period(2043,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19738535,8),0,Date::ITALY),DateTime.new0(Rational.new!(14805329,6),0,Date::ITALY),-25200,3600,:'MDT')}
167
+ add_period(2043,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(14805329,6),0,Date::ITALY),DateTime.new0(Rational.new!(19741503,8),0,Date::ITALY),-25200,0,:'MST')}
168
+ add_period(2044,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19741503,8),0,Date::ITALY),DateTime.new0(Rational.new!(14807555,6),0,Date::ITALY),-25200,3600,:'MDT')}
169
+ add_period(2044,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(14807555,6),0,Date::ITALY),DateTime.new0(Rational.new!(19744415,8),0,Date::ITALY),-25200,0,:'MST')}
170
+ add_period(2045,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(19744415,8),0,Date::ITALY),DateTime.new0(Rational.new!(14809739,6),0,Date::ITALY),-25200,3600,:'MDT')}
171
+ add_period(2045,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(14809739,6),0,Date::ITALY),nil,-25200,0,:'MST')}
7
172
  end
8
173
  end
9
174
  end
@@ -1,9 +1,174 @@
1
1
  require 'tzinfo/timezone'
2
- require 'tzinfo/definitions/America/Los_Angeles'
3
2
  module TZInfo
4
3
  module Definitions #:nodoc:
5
- class PST8PDT < Definitions::America::Los_Angeles #:nodoc:
4
+ class PST8PDT < Timezone #:nodoc:
5
+ setup
6
6
  set_identifier('PST8PDT')
7
+ add_period(1850,1) {TimezonePeriod.new(DateTime.new0(Rational.new!(4793517,2),0,Date::ITALY),DateTime.new0(Rational.new!(29060207,12),0,Date::ITALY),-28800,0,:'PT')}
8
+ add_period(1918,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29060207,12),0,Date::ITALY),DateTime.new0(Rational.new!(19375151,8),0,Date::ITALY),-28800,3600,:'PDT')}
9
+ add_period(1918,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19375151,8),0,Date::ITALY),DateTime.new0(Rational.new!(29064575,12),0,Date::ITALY),-28800,0,:'PST')}
10
+ add_period(1919,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29064575,12),0,Date::ITALY),DateTime.new0(Rational.new!(19378063,8),0,Date::ITALY),-28800,3600,:'PDT')}
11
+ add_period(1919,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19378063,8),0,Date::ITALY),DateTime.new0(Rational.new!(29164799,12),0,Date::ITALY),-28800,0,:'PST')}
12
+ add_period(1942,2) {TimezonePeriod.new(DateTime.new0(Rational.new!(29164799,12),0,Date::ITALY),DateTime.new0(Rational.new!(19453831,8),0,Date::ITALY),-28800,3600,:'PWT')}
13
+ add_period(1945,9) {TimezonePeriod.new(DateTime.new0(Rational.new!(19453831,8),0,Date::ITALY),DateTime.new0(Rational.new!(29275331,12),0,Date::ITALY),-28800,0,:'PST')}
14
+ add_period(1967,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29275331,12),0,Date::ITALY),DateTime.new0(Rational.new!(19518343,8),0,Date::ITALY),-28800,3600,:'PDT')}
15
+ add_period(1967,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19518343,8),0,Date::ITALY),DateTime.new0(Rational.new!(29279699,12),0,Date::ITALY),-28800,0,:'PST')}
16
+ add_period(1968,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29279699,12),0,Date::ITALY),DateTime.new0(Rational.new!(19521255,8),0,Date::ITALY),-28800,3600,:'PDT')}
17
+ add_period(1968,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19521255,8),0,Date::ITALY),DateTime.new0(Rational.new!(29284067,12),0,Date::ITALY),-28800,0,:'PST')}
18
+ add_period(1969,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29284067,12),0,Date::ITALY),DateTime.new0(Rational.new!(19524167,8),0,Date::ITALY),-28800,3600,:'PDT')}
19
+ add_period(1969,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19524167,8),0,Date::ITALY),DateTime.new0(Rational.new!(29288435,12),0,Date::ITALY),-28800,0,:'PST')}
20
+ add_period(1970,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29288435,12),0,Date::ITALY),DateTime.new0(Rational.new!(19527079,8),0,Date::ITALY),-28800,3600,:'PDT')}
21
+ add_period(1970,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19527079,8),0,Date::ITALY),DateTime.new0(Rational.new!(29292803,12),0,Date::ITALY),-28800,0,:'PST')}
22
+ add_period(1971,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29292803,12),0,Date::ITALY),DateTime.new0(Rational.new!(19530047,8),0,Date::ITALY),-28800,3600,:'PDT')}
23
+ add_period(1971,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19530047,8),0,Date::ITALY),DateTime.new0(Rational.new!(29297255,12),0,Date::ITALY),-28800,0,:'PST')}
24
+ add_period(1972,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29297255,12),0,Date::ITALY),DateTime.new0(Rational.new!(19532959,8),0,Date::ITALY),-28800,3600,:'PDT')}
25
+ add_period(1972,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19532959,8),0,Date::ITALY),DateTime.new0(Rational.new!(29301623,12),0,Date::ITALY),-28800,0,:'PST')}
26
+ add_period(1973,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29301623,12),0,Date::ITALY),DateTime.new0(Rational.new!(19535871,8),0,Date::ITALY),-28800,3600,:'PDT')}
27
+ add_period(1973,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19535871,8),0,Date::ITALY),DateTime.new0(Rational.new!(29304647,12),0,Date::ITALY),-28800,0,:'PST')}
28
+ add_period(1974,1) {TimezonePeriod.new(DateTime.new0(Rational.new!(29304647,12),0,Date::ITALY),DateTime.new0(Rational.new!(19538783,8),0,Date::ITALY),-28800,3600,:'PDT')}
29
+ add_period(1974,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19538783,8),0,Date::ITALY),DateTime.new0(Rational.new!(29309603,12),0,Date::ITALY),-28800,0,:'PST')}
30
+ add_period(1975,2) {TimezonePeriod.new(DateTime.new0(Rational.new!(29309603,12),0,Date::ITALY),DateTime.new0(Rational.new!(19541695,8),0,Date::ITALY),-28800,3600,:'PDT')}
31
+ add_period(1975,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19541695,8),0,Date::ITALY),DateTime.new0(Rational.new!(29314727,12),0,Date::ITALY),-28800,0,:'PST')}
32
+ add_period(1976,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29314727,12),0,Date::ITALY),DateTime.new0(Rational.new!(19544663,8),0,Date::ITALY),-28800,3600,:'PDT')}
33
+ add_period(1976,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19544663,8),0,Date::ITALY),DateTime.new0(Rational.new!(29319095,12),0,Date::ITALY),-28800,0,:'PST')}
34
+ add_period(1977,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29319095,12),0,Date::ITALY),DateTime.new0(Rational.new!(19547575,8),0,Date::ITALY),-28800,3600,:'PDT')}
35
+ add_period(1977,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19547575,8),0,Date::ITALY),DateTime.new0(Rational.new!(29323547,12),0,Date::ITALY),-28800,0,:'PST')}
36
+ add_period(1978,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29323547,12),0,Date::ITALY),DateTime.new0(Rational.new!(19550487,8),0,Date::ITALY),-28800,3600,:'PDT')}
37
+ add_period(1978,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19550487,8),0,Date::ITALY),DateTime.new0(Rational.new!(29327915,12),0,Date::ITALY),-28800,0,:'PST')}
38
+ add_period(1979,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29327915,12),0,Date::ITALY),DateTime.new0(Rational.new!(19553399,8),0,Date::ITALY),-28800,3600,:'PDT')}
39
+ add_period(1979,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19553399,8),0,Date::ITALY),DateTime.new0(Rational.new!(29332283,12),0,Date::ITALY),-28800,0,:'PST')}
40
+ add_period(1980,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29332283,12),0,Date::ITALY),DateTime.new0(Rational.new!(19556311,8),0,Date::ITALY),-28800,3600,:'PDT')}
41
+ add_period(1980,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19556311,8),0,Date::ITALY),DateTime.new0(Rational.new!(29336651,12),0,Date::ITALY),-28800,0,:'PST')}
42
+ add_period(1981,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29336651,12),0,Date::ITALY),DateTime.new0(Rational.new!(19559223,8),0,Date::ITALY),-28800,3600,:'PDT')}
43
+ add_period(1981,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19559223,8),0,Date::ITALY),DateTime.new0(Rational.new!(29341019,12),0,Date::ITALY),-28800,0,:'PST')}
44
+ add_period(1982,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29341019,12),0,Date::ITALY),DateTime.new0(Rational.new!(19562191,8),0,Date::ITALY),-28800,3600,:'PDT')}
45
+ add_period(1982,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19562191,8),0,Date::ITALY),DateTime.new0(Rational.new!(29345387,12),0,Date::ITALY),-28800,0,:'PST')}
46
+ add_period(1983,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29345387,12),0,Date::ITALY),DateTime.new0(Rational.new!(19565103,8),0,Date::ITALY),-28800,3600,:'PDT')}
47
+ add_period(1983,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19565103,8),0,Date::ITALY),DateTime.new0(Rational.new!(29349839,12),0,Date::ITALY),-28800,0,:'PST')}
48
+ add_period(1984,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29349839,12),0,Date::ITALY),DateTime.new0(Rational.new!(19568015,8),0,Date::ITALY),-28800,3600,:'PDT')}
49
+ add_period(1984,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19568015,8),0,Date::ITALY),DateTime.new0(Rational.new!(29354207,12),0,Date::ITALY),-28800,0,:'PST')}
50
+ add_period(1985,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29354207,12),0,Date::ITALY),DateTime.new0(Rational.new!(19570927,8),0,Date::ITALY),-28800,3600,:'PDT')}
51
+ add_period(1985,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19570927,8),0,Date::ITALY),DateTime.new0(Rational.new!(29358575,12),0,Date::ITALY),-28800,0,:'PST')}
52
+ add_period(1986,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29358575,12),0,Date::ITALY),DateTime.new0(Rational.new!(19573839,8),0,Date::ITALY),-28800,3600,:'PDT')}
53
+ add_period(1986,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19573839,8),0,Date::ITALY),DateTime.new0(Rational.new!(29362691,12),0,Date::ITALY),-28800,0,:'PST')}
54
+ add_period(1987,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29362691,12),0,Date::ITALY),DateTime.new0(Rational.new!(19576751,8),0,Date::ITALY),-28800,3600,:'PDT')}
55
+ add_period(1987,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19576751,8),0,Date::ITALY),DateTime.new0(Rational.new!(29367059,12),0,Date::ITALY),-28800,0,:'PST')}
56
+ add_period(1988,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29367059,12),0,Date::ITALY),DateTime.new0(Rational.new!(19579719,8),0,Date::ITALY),-28800,3600,:'PDT')}
57
+ add_period(1988,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19579719,8),0,Date::ITALY),DateTime.new0(Rational.new!(29371427,12),0,Date::ITALY),-28800,0,:'PST')}
58
+ add_period(1989,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29371427,12),0,Date::ITALY),DateTime.new0(Rational.new!(19582631,8),0,Date::ITALY),-28800,3600,:'PDT')}
59
+ add_period(1989,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19582631,8),0,Date::ITALY),DateTime.new0(Rational.new!(29375795,12),0,Date::ITALY),-28800,0,:'PST')}
60
+ add_period(1990,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29375795,12),0,Date::ITALY),DateTime.new0(Rational.new!(19585543,8),0,Date::ITALY),-28800,3600,:'PDT')}
61
+ add_period(1990,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19585543,8),0,Date::ITALY),DateTime.new0(Rational.new!(29380247,12),0,Date::ITALY),-28800,0,:'PST')}
62
+ add_period(1991,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29380247,12),0,Date::ITALY),DateTime.new0(Rational.new!(19588455,8),0,Date::ITALY),-28800,3600,:'PDT')}
63
+ add_period(1991,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19588455,8),0,Date::ITALY),DateTime.new0(Rational.new!(29384615,12),0,Date::ITALY),-28800,0,:'PST')}
64
+ add_period(1992,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29384615,12),0,Date::ITALY),DateTime.new0(Rational.new!(19591367,8),0,Date::ITALY),-28800,3600,:'PDT')}
65
+ add_period(1992,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19591367,8),0,Date::ITALY),DateTime.new0(Rational.new!(29388983,12),0,Date::ITALY),-28800,0,:'PST')}
66
+ add_period(1993,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29388983,12),0,Date::ITALY),DateTime.new0(Rational.new!(19594335,8),0,Date::ITALY),-28800,3600,:'PDT')}
67
+ add_period(1993,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19594335,8),0,Date::ITALY),DateTime.new0(Rational.new!(29393351,12),0,Date::ITALY),-28800,0,:'PST')}
68
+ add_period(1994,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29393351,12),0,Date::ITALY),DateTime.new0(Rational.new!(19597247,8),0,Date::ITALY),-28800,3600,:'PDT')}
69
+ add_period(1994,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19597247,8),0,Date::ITALY),DateTime.new0(Rational.new!(29397719,12),0,Date::ITALY),-28800,0,:'PST')}
70
+ add_period(1995,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29397719,12),0,Date::ITALY),DateTime.new0(Rational.new!(19600159,8),0,Date::ITALY),-28800,3600,:'PDT')}
71
+ add_period(1995,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19600159,8),0,Date::ITALY),DateTime.new0(Rational.new!(29402171,12),0,Date::ITALY),-28800,0,:'PST')}
72
+ add_period(1996,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29402171,12),0,Date::ITALY),DateTime.new0(Rational.new!(19603071,8),0,Date::ITALY),-28800,3600,:'PDT')}
73
+ add_period(1996,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19603071,8),0,Date::ITALY),DateTime.new0(Rational.new!(29406539,12),0,Date::ITALY),-28800,0,:'PST')}
74
+ add_period(1997,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29406539,12),0,Date::ITALY),DateTime.new0(Rational.new!(19605983,8),0,Date::ITALY),-28800,3600,:'PDT')}
75
+ add_period(1997,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19605983,8),0,Date::ITALY),DateTime.new0(Rational.new!(29410907,12),0,Date::ITALY),-28800,0,:'PST')}
76
+ add_period(1998,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29410907,12),0,Date::ITALY),DateTime.new0(Rational.new!(19608895,8),0,Date::ITALY),-28800,3600,:'PDT')}
77
+ add_period(1998,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19608895,8),0,Date::ITALY),DateTime.new0(Rational.new!(29415275,12),0,Date::ITALY),-28800,0,:'PST')}
78
+ add_period(1999,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29415275,12),0,Date::ITALY),DateTime.new0(Rational.new!(19611863,8),0,Date::ITALY),-28800,3600,:'PDT')}
79
+ add_period(1999,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19611863,8),0,Date::ITALY),DateTime.new0(Rational.new!(29419643,12),0,Date::ITALY),-28800,0,:'PST')}
80
+ add_period(2000,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29419643,12),0,Date::ITALY),DateTime.new0(Rational.new!(19614775,8),0,Date::ITALY),-28800,3600,:'PDT')}
81
+ add_period(2000,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19614775,8),0,Date::ITALY),DateTime.new0(Rational.new!(29424011,12),0,Date::ITALY),-28800,0,:'PST')}
82
+ add_period(2001,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29424011,12),0,Date::ITALY),DateTime.new0(Rational.new!(19617687,8),0,Date::ITALY),-28800,3600,:'PDT')}
83
+ add_period(2001,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19617687,8),0,Date::ITALY),DateTime.new0(Rational.new!(29428463,12),0,Date::ITALY),-28800,0,:'PST')}
84
+ add_period(2002,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29428463,12),0,Date::ITALY),DateTime.new0(Rational.new!(19620599,8),0,Date::ITALY),-28800,3600,:'PDT')}
85
+ add_period(2002,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19620599,8),0,Date::ITALY),DateTime.new0(Rational.new!(29432831,12),0,Date::ITALY),-28800,0,:'PST')}
86
+ add_period(2003,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29432831,12),0,Date::ITALY),DateTime.new0(Rational.new!(19623511,8),0,Date::ITALY),-28800,3600,:'PDT')}
87
+ add_period(2003,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19623511,8),0,Date::ITALY),DateTime.new0(Rational.new!(29437199,12),0,Date::ITALY),-28800,0,:'PST')}
88
+ add_period(2004,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29437199,12),0,Date::ITALY),DateTime.new0(Rational.new!(19626479,8),0,Date::ITALY),-28800,3600,:'PDT')}
89
+ add_period(2004,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19626479,8),0,Date::ITALY),DateTime.new0(Rational.new!(29441567,12),0,Date::ITALY),-28800,0,:'PST')}
90
+ add_period(2005,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29441567,12),0,Date::ITALY),DateTime.new0(Rational.new!(19629391,8),0,Date::ITALY),-28800,3600,:'PDT')}
91
+ add_period(2005,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19629391,8),0,Date::ITALY),DateTime.new0(Rational.new!(29445935,12),0,Date::ITALY),-28800,0,:'PST')}
92
+ add_period(2006,4) {TimezonePeriod.new(DateTime.new0(Rational.new!(29445935,12),0,Date::ITALY),DateTime.new0(Rational.new!(19632303,8),0,Date::ITALY),-28800,3600,:'PDT')}
93
+ add_period(2006,10) {TimezonePeriod.new(DateTime.new0(Rational.new!(19632303,8),0,Date::ITALY),DateTime.new0(Rational.new!(29450051,12),0,Date::ITALY),-28800,0,:'PST')}
94
+ add_period(2007,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29450051,12),0,Date::ITALY),DateTime.new0(Rational.new!(19635271,8),0,Date::ITALY),-28800,3600,:'PDT')}
95
+ add_period(2007,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19635271,8),0,Date::ITALY),DateTime.new0(Rational.new!(29454419,12),0,Date::ITALY),-28800,0,:'PST')}
96
+ add_period(2008,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29454419,12),0,Date::ITALY),DateTime.new0(Rational.new!(19638183,8),0,Date::ITALY),-28800,3600,:'PDT')}
97
+ add_period(2008,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19638183,8),0,Date::ITALY),DateTime.new0(Rational.new!(29458787,12),0,Date::ITALY),-28800,0,:'PST')}
98
+ add_period(2009,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29458787,12),0,Date::ITALY),DateTime.new0(Rational.new!(19641095,8),0,Date::ITALY),-28800,3600,:'PDT')}
99
+ add_period(2009,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19641095,8),0,Date::ITALY),DateTime.new0(Rational.new!(29463239,12),0,Date::ITALY),-28800,0,:'PST')}
100
+ add_period(2010,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29463239,12),0,Date::ITALY),DateTime.new0(Rational.new!(19644063,8),0,Date::ITALY),-28800,3600,:'PDT')}
101
+ add_period(2010,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19644063,8),0,Date::ITALY),DateTime.new0(Rational.new!(29467607,12),0,Date::ITALY),-28800,0,:'PST')}
102
+ add_period(2011,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29467607,12),0,Date::ITALY),DateTime.new0(Rational.new!(19646975,8),0,Date::ITALY),-28800,3600,:'PDT')}
103
+ add_period(2011,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19646975,8),0,Date::ITALY),DateTime.new0(Rational.new!(29471975,12),0,Date::ITALY),-28800,0,:'PST')}
104
+ add_period(2012,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29471975,12),0,Date::ITALY),DateTime.new0(Rational.new!(19649887,8),0,Date::ITALY),-28800,3600,:'PDT')}
105
+ add_period(2012,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19649887,8),0,Date::ITALY),DateTime.new0(Rational.new!(29476343,12),0,Date::ITALY),-28800,0,:'PST')}
106
+ add_period(2013,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29476343,12),0,Date::ITALY),DateTime.new0(Rational.new!(19652799,8),0,Date::ITALY),-28800,3600,:'PDT')}
107
+ add_period(2013,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19652799,8),0,Date::ITALY),DateTime.new0(Rational.new!(29480711,12),0,Date::ITALY),-28800,0,:'PST')}
108
+ add_period(2014,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29480711,12),0,Date::ITALY),DateTime.new0(Rational.new!(19655711,8),0,Date::ITALY),-28800,3600,:'PDT')}
109
+ add_period(2014,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19655711,8),0,Date::ITALY),DateTime.new0(Rational.new!(29485079,12),0,Date::ITALY),-28800,0,:'PST')}
110
+ add_period(2015,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29485079,12),0,Date::ITALY),DateTime.new0(Rational.new!(19658623,8),0,Date::ITALY),-28800,3600,:'PDT')}
111
+ add_period(2015,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19658623,8),0,Date::ITALY),DateTime.new0(Rational.new!(29489531,12),0,Date::ITALY),-28800,0,:'PST')}
112
+ add_period(2016,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29489531,12),0,Date::ITALY),DateTime.new0(Rational.new!(19661591,8),0,Date::ITALY),-28800,3600,:'PDT')}
113
+ add_period(2016,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19661591,8),0,Date::ITALY),DateTime.new0(Rational.new!(29493899,12),0,Date::ITALY),-28800,0,:'PST')}
114
+ add_period(2017,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29493899,12),0,Date::ITALY),DateTime.new0(Rational.new!(19664503,8),0,Date::ITALY),-28800,3600,:'PDT')}
115
+ add_period(2017,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19664503,8),0,Date::ITALY),DateTime.new0(Rational.new!(29498267,12),0,Date::ITALY),-28800,0,:'PST')}
116
+ add_period(2018,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29498267,12),0,Date::ITALY),DateTime.new0(Rational.new!(19667415,8),0,Date::ITALY),-28800,3600,:'PDT')}
117
+ add_period(2018,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19667415,8),0,Date::ITALY),DateTime.new0(Rational.new!(29502635,12),0,Date::ITALY),-28800,0,:'PST')}
118
+ add_period(2019,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29502635,12),0,Date::ITALY),DateTime.new0(Rational.new!(19670327,8),0,Date::ITALY),-28800,3600,:'PDT')}
119
+ add_period(2019,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19670327,8),0,Date::ITALY),DateTime.new0(Rational.new!(29507003,12),0,Date::ITALY),-28800,0,:'PST')}
120
+ add_period(2020,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29507003,12),0,Date::ITALY),DateTime.new0(Rational.new!(19673239,8),0,Date::ITALY),-28800,3600,:'PDT')}
121
+ add_period(2020,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19673239,8),0,Date::ITALY),DateTime.new0(Rational.new!(29511455,12),0,Date::ITALY),-28800,0,:'PST')}
122
+ add_period(2021,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29511455,12),0,Date::ITALY),DateTime.new0(Rational.new!(19676207,8),0,Date::ITALY),-28800,3600,:'PDT')}
123
+ add_period(2021,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19676207,8),0,Date::ITALY),DateTime.new0(Rational.new!(29515823,12),0,Date::ITALY),-28800,0,:'PST')}
124
+ add_period(2022,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29515823,12),0,Date::ITALY),DateTime.new0(Rational.new!(19679119,8),0,Date::ITALY),-28800,3600,:'PDT')}
125
+ add_period(2022,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19679119,8),0,Date::ITALY),DateTime.new0(Rational.new!(29520191,12),0,Date::ITALY),-28800,0,:'PST')}
126
+ add_period(2023,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29520191,12),0,Date::ITALY),DateTime.new0(Rational.new!(19682031,8),0,Date::ITALY),-28800,3600,:'PDT')}
127
+ add_period(2023,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19682031,8),0,Date::ITALY),DateTime.new0(Rational.new!(29524559,12),0,Date::ITALY),-28800,0,:'PST')}
128
+ add_period(2024,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29524559,12),0,Date::ITALY),DateTime.new0(Rational.new!(19684943,8),0,Date::ITALY),-28800,3600,:'PDT')}
129
+ add_period(2024,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19684943,8),0,Date::ITALY),DateTime.new0(Rational.new!(29528927,12),0,Date::ITALY),-28800,0,:'PST')}
130
+ add_period(2025,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29528927,12),0,Date::ITALY),DateTime.new0(Rational.new!(19687855,8),0,Date::ITALY),-28800,3600,:'PDT')}
131
+ add_period(2025,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19687855,8),0,Date::ITALY),DateTime.new0(Rational.new!(29533295,12),0,Date::ITALY),-28800,0,:'PST')}
132
+ add_period(2026,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29533295,12),0,Date::ITALY),DateTime.new0(Rational.new!(19690767,8),0,Date::ITALY),-28800,3600,:'PDT')}
133
+ add_period(2026,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19690767,8),0,Date::ITALY),DateTime.new0(Rational.new!(29537747,12),0,Date::ITALY),-28800,0,:'PST')}
134
+ add_period(2027,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29537747,12),0,Date::ITALY),DateTime.new0(Rational.new!(19693735,8),0,Date::ITALY),-28800,3600,:'PDT')}
135
+ add_period(2027,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19693735,8),0,Date::ITALY),DateTime.new0(Rational.new!(29542115,12),0,Date::ITALY),-28800,0,:'PST')}
136
+ add_period(2028,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29542115,12),0,Date::ITALY),DateTime.new0(Rational.new!(19696647,8),0,Date::ITALY),-28800,3600,:'PDT')}
137
+ add_period(2028,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19696647,8),0,Date::ITALY),DateTime.new0(Rational.new!(29546483,12),0,Date::ITALY),-28800,0,:'PST')}
138
+ add_period(2029,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29546483,12),0,Date::ITALY),DateTime.new0(Rational.new!(19699559,8),0,Date::ITALY),-28800,3600,:'PDT')}
139
+ add_period(2029,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19699559,8),0,Date::ITALY),DateTime.new0(Rational.new!(29550851,12),0,Date::ITALY),-28800,0,:'PST')}
140
+ add_period(2030,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29550851,12),0,Date::ITALY),DateTime.new0(Rational.new!(19702471,8),0,Date::ITALY),-28800,3600,:'PDT')}
141
+ add_period(2030,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19702471,8),0,Date::ITALY),DateTime.new0(Rational.new!(29555219,12),0,Date::ITALY),-28800,0,:'PST')}
142
+ add_period(2031,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29555219,12),0,Date::ITALY),DateTime.new0(Rational.new!(19705383,8),0,Date::ITALY),-28800,3600,:'PDT')}
143
+ add_period(2031,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19705383,8),0,Date::ITALY),DateTime.new0(Rational.new!(29559671,12),0,Date::ITALY),-28800,0,:'PST')}
144
+ add_period(2032,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29559671,12),0,Date::ITALY),DateTime.new0(Rational.new!(19708351,8),0,Date::ITALY),-28800,3600,:'PDT')}
145
+ add_period(2032,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19708351,8),0,Date::ITALY),DateTime.new0(Rational.new!(29564039,12),0,Date::ITALY),-28800,0,:'PST')}
146
+ add_period(2033,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29564039,12),0,Date::ITALY),DateTime.new0(Rational.new!(19711263,8),0,Date::ITALY),-28800,3600,:'PDT')}
147
+ add_period(2033,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19711263,8),0,Date::ITALY),DateTime.new0(Rational.new!(29568407,12),0,Date::ITALY),-28800,0,:'PST')}
148
+ add_period(2034,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29568407,12),0,Date::ITALY),DateTime.new0(Rational.new!(19714175,8),0,Date::ITALY),-28800,3600,:'PDT')}
149
+ add_period(2034,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19714175,8),0,Date::ITALY),DateTime.new0(Rational.new!(29572775,12),0,Date::ITALY),-28800,0,:'PST')}
150
+ add_period(2035,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29572775,12),0,Date::ITALY),DateTime.new0(Rational.new!(19717087,8),0,Date::ITALY),-28800,3600,:'PDT')}
151
+ add_period(2035,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19717087,8),0,Date::ITALY),DateTime.new0(Rational.new!(29577143,12),0,Date::ITALY),-28800,0,:'PST')}
152
+ add_period(2036,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29577143,12),0,Date::ITALY),DateTime.new0(Rational.new!(19719999,8),0,Date::ITALY),-28800,3600,:'PDT')}
153
+ add_period(2036,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19719999,8),0,Date::ITALY),DateTime.new0(Rational.new!(29581511,12),0,Date::ITALY),-28800,0,:'PST')}
154
+ add_period(2037,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29581511,12),0,Date::ITALY),DateTime.new0(Rational.new!(19722911,8),0,Date::ITALY),-28800,3600,:'PDT')}
155
+ add_period(2037,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19722911,8),0,Date::ITALY),DateTime.new0(Rational.new!(29585963,12),0,Date::ITALY),-28800,0,:'PST')}
156
+ add_period(2038,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29585963,12),0,Date::ITALY),DateTime.new0(Rational.new!(19725879,8),0,Date::ITALY),-28800,3600,:'PDT')}
157
+ add_period(2038,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19725879,8),0,Date::ITALY),DateTime.new0(Rational.new!(29590331,12),0,Date::ITALY),-28800,0,:'PST')}
158
+ add_period(2039,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29590331,12),0,Date::ITALY),DateTime.new0(Rational.new!(19728791,8),0,Date::ITALY),-28800,3600,:'PDT')}
159
+ add_period(2039,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19728791,8),0,Date::ITALY),DateTime.new0(Rational.new!(29594699,12),0,Date::ITALY),-28800,0,:'PST')}
160
+ add_period(2040,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29594699,12),0,Date::ITALY),DateTime.new0(Rational.new!(19731703,8),0,Date::ITALY),-28800,3600,:'PDT')}
161
+ add_period(2040,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19731703,8),0,Date::ITALY),DateTime.new0(Rational.new!(29599067,12),0,Date::ITALY),-28800,0,:'PST')}
162
+ add_period(2041,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29599067,12),0,Date::ITALY),DateTime.new0(Rational.new!(19734615,8),0,Date::ITALY),-28800,3600,:'PDT')}
163
+ add_period(2041,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19734615,8),0,Date::ITALY),DateTime.new0(Rational.new!(29603435,12),0,Date::ITALY),-28800,0,:'PST')}
164
+ add_period(2042,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29603435,12),0,Date::ITALY),DateTime.new0(Rational.new!(19737527,8),0,Date::ITALY),-28800,3600,:'PDT')}
165
+ add_period(2042,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19737527,8),0,Date::ITALY),DateTime.new0(Rational.new!(29607803,12),0,Date::ITALY),-28800,0,:'PST')}
166
+ add_period(2043,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29607803,12),0,Date::ITALY),DateTime.new0(Rational.new!(19740439,8),0,Date::ITALY),-28800,3600,:'PDT')}
167
+ add_period(2043,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19740439,8),0,Date::ITALY),DateTime.new0(Rational.new!(29612255,12),0,Date::ITALY),-28800,0,:'PST')}
168
+ add_period(2044,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29612255,12),0,Date::ITALY),DateTime.new0(Rational.new!(19743407,8),0,Date::ITALY),-28800,3600,:'PDT')}
169
+ add_period(2044,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19743407,8),0,Date::ITALY),DateTime.new0(Rational.new!(29616623,12),0,Date::ITALY),-28800,0,:'PST')}
170
+ add_period(2045,3) {TimezonePeriod.new(DateTime.new0(Rational.new!(29616623,12),0,Date::ITALY),DateTime.new0(Rational.new!(19746319,8),0,Date::ITALY),-28800,3600,:'PDT')}
171
+ add_period(2045,11) {TimezonePeriod.new(DateTime.new0(Rational.new!(19746319,8),0,Date::ITALY),nil,-28800,0,:'PST')}
7
172
  end
8
173
  end
9
174
  end
@@ -38,6 +38,11 @@ module TZInfo
38
38
  class InvalidTimezoneIdentifier < StandardError
39
39
  end
40
40
 
41
+ # Thrown if an attempt is made to do a conversion on a timezone created
42
+ # with Timezone.new(nil).
43
+ class UnknownTimezone < StandardError
44
+ end
45
+
41
46
  # Timezone is the base class of all timezones. It provides a factory method
42
47
  # get to access timezones by identifier. Once a specific Timezone has been
43
48
  # retrieved, DateTimes and Times can be converted between the UTC and the
@@ -359,6 +364,11 @@ module TZInfo
359
364
  identifier <=> tz.identifier
360
365
  end
361
366
 
367
+ def periods #:nodoc:
368
+ raise UnknownTimezone, 'An attempt was made to perform a conversion on ' +
369
+ 'an unknown timezone (i.e. one created with TZInfo::Timezone.new(nil))'
370
+ end
371
+
362
372
  protected
363
373
  def self.setup
364
374
  class_eval <<CODE
@@ -79,13 +79,27 @@ class TCTimezone < Test::Unit::TestCase
79
79
  def test_new_no_args
80
80
  tz = Timezone.new
81
81
 
82
- assert_equal('Unknown', tz.identifier)
82
+ assert_equal('Unknown', tz.identifier)
83
+ assert_equal('Unknown', tz.friendly_identifier)
84
+ assert_raise(UnknownTimezone) { tz.utc_to_local(DateTime.new(2006,1,1,1,0,0)) }
85
+ assert_raise(UnknownTimezone) { tz.local_to_utc(DateTime.new(2006,1,1,1,0,0)) }
86
+ assert_raise(UnknownTimezone) { tz.period_for_utc(DateTime.new(2006,1,1,1,0,0)) }
87
+ assert_raise(UnknownTimezone) { tz.period_for_local(DateTime.new(2006,1,1,1,0,0)) }
88
+ assert_raise(UnknownTimezone) { tz.now }
89
+ assert_raise(UnknownTimezone) { tz.current_period_and_time }
83
90
  end
84
91
 
85
92
  def test_new_nil
86
93
  tz = Timezone.new(nil)
87
94
 
88
- assert_equal('Unknown', tz.identifier)
95
+ assert_equal('Unknown', tz.identifier)
96
+ assert_equal('Unknown', tz.friendly_identifier)
97
+ assert_raise(UnknownTimezone) { tz.utc_to_local(DateTime.new(2006,1,1,1,0,0)) }
98
+ assert_raise(UnknownTimezone) { tz.local_to_utc(DateTime.new(2006,1,1,1,0,0)) }
99
+ assert_raise(UnknownTimezone) { tz.period_for_utc(DateTime.new(2006,1,1,1,0,0)) }
100
+ assert_raise(UnknownTimezone) { tz.period_for_local(DateTime.new(2006,1,1,1,0,0)) }
101
+ assert_raise(UnknownTimezone) { tz.now }
102
+ assert_raise(UnknownTimezone) { tz.current_period_and_time }
89
103
  end
90
104
 
91
105
  def test_new_arg
metadata CHANGED
@@ -3,12 +3,12 @@ rubygems_version: 0.8.10
3
3
  specification_version: 1
4
4
  name: tzinfo
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.1.1
7
- date: 2005-12-18
6
+ version: 0.1.2
7
+ date: 2006-02-05
8
8
  summary: Daylight-savings aware timezone library
9
9
  require_paths:
10
10
  - lib
11
- email: philip@ross.org.uk
11
+ email: phil.ross@gmail.com
12
12
  homepage: http://tzinfo.rubyforge.org/
13
13
  rubyforge_project: tzinfo
14
14
  description:
@@ -28,12 +28,9 @@ authors:
28
28
  - Philip Ross
29
29
  files:
30
30
  - CHANGES
31
- - doc
32
- - lib
33
31
  - LICENSE
34
32
  - Rakefile
35
33
  - README
36
- - test
37
34
  - lib/tzinfo
38
35
  - lib/tzinfo.rb
39
36
  - lib/tzinfo/countries
@@ -336,7 +333,6 @@ files:
336
333
  - lib/tzinfo/definitions/ROC.rb
337
334
  - lib/tzinfo/definitions/ROK.rb
338
335
  - lib/tzinfo/definitions/Singapore.rb
339
- - lib/tzinfo/definitions/SystemV
340
336
  - lib/tzinfo/definitions/Turkey.rb
341
337
  - lib/tzinfo/definitions/UCT.rb
342
338
  - lib/tzinfo/definitions/Universal.rb
@@ -475,6 +471,7 @@ files:
475
471
  - lib/tzinfo/definitions/America/Merida.rb
476
472
  - lib/tzinfo/definitions/America/Mexico_City.rb
477
473
  - lib/tzinfo/definitions/America/Miquelon.rb
474
+ - lib/tzinfo/definitions/America/Moncton.rb
478
475
  - lib/tzinfo/definitions/America/Monterrey.rb
479
476
  - lib/tzinfo/definitions/America/Montevideo.rb
480
477
  - lib/tzinfo/definitions/America/Montreal.rb
@@ -537,7 +534,9 @@ files:
537
534
  - lib/tzinfo/definitions/America/Indiana/Indianapolis.rb
538
535
  - lib/tzinfo/definitions/America/Indiana/Knox.rb
539
536
  - lib/tzinfo/definitions/America/Indiana/Marengo.rb
537
+ - lib/tzinfo/definitions/America/Indiana/Petersburg.rb
540
538
  - lib/tzinfo/definitions/America/Indiana/Vevay.rb
539
+ - lib/tzinfo/definitions/America/Indiana/Vincennes.rb
541
540
  - lib/tzinfo/definitions/America/Kentucky/Louisville.rb
542
541
  - lib/tzinfo/definitions/America/Kentucky/Monticello.rb
543
542
  - lib/tzinfo/definitions/America/North_Dakota/Center.rb