tzinfo 0.3.7 → 0.3.8

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.

data/CHANGES CHANGED
@@ -1,3 +1,15 @@
1
+ == Version 0.3.8 (tzdata v2008b) - 24-Mar-2008
2
+
3
+ * Updated to tzdata version 2008b
4
+ (http://article.gmane.org/gmane.comp.time.tz/2149).
5
+ * Support loading timezone data in Ruby 1.9.0. Use DateTime.new! if it is
6
+ available instead of DateTime.new0 when constructing transition times.
7
+ DateTime.new! was added in Ruby 1.8.6. DateTime.new0 was removed in
8
+ Ruby 1.9.0. Thanks to Joshua Peek for reporting this. Closes #17606.
9
+ * Modify some of the equality test cases to cope with the differences
10
+ between Ruby 1.8.6 and Ruby 1.9.0.
11
+
12
+
1
13
  == Version 0.3.7 (tzdata v2008a) - 10-Mar-2008
2
14
 
3
15
  * Updated to tzdata version 2008a
data/Rakefile CHANGED
@@ -16,7 +16,7 @@ require 'rake/rdoctask'
16
16
  require 'rake/gempackagetask'
17
17
  require 'fileutils'
18
18
 
19
- PKG_VERSION = "0.3.7"
19
+ PKG_VERSION = "0.3.8"
20
20
  PKG_FILES = FileList[
21
21
  'CHANGES',
22
22
  'LICENSE',
@@ -0,0 +1,86 @@
1
+ require 'tzinfo/timezone_definition'
2
+
3
+ module TZInfo
4
+ module Definitions
5
+ module America
6
+ module Argentina
7
+ module San_Luis
8
+ include TimezoneDefinition
9
+
10
+ timezone 'America/Argentina/San_Luis' do |tz|
11
+ tz.offset :o0, -15924, 0, :LMT
12
+ tz.offset :o1, -15408, 0, :CMT
13
+ tz.offset :o2, -14400, 0, :ART
14
+ tz.offset :o3, -14400, 3600, :ARST
15
+ tz.offset :o4, -10800, 0, :ART
16
+ tz.offset :o5, -10800, 3600, :ARST
17
+ tz.offset :o6, -14400, 0, :WART
18
+
19
+ tz.transition 1894, 10, :o1, 17374555327, 7200
20
+ tz.transition 1920, 5, :o2, 1453467407, 600
21
+ tz.transition 1930, 12, :o3, 7278935, 3
22
+ tz.transition 1931, 4, :o2, 19411461, 8
23
+ tz.transition 1931, 10, :o3, 7279889, 3
24
+ tz.transition 1932, 3, :o2, 19414141, 8
25
+ tz.transition 1932, 11, :o3, 7281038, 3
26
+ tz.transition 1933, 3, :o2, 19417061, 8
27
+ tz.transition 1933, 11, :o3, 7282133, 3
28
+ tz.transition 1934, 3, :o2, 19419981, 8
29
+ tz.transition 1934, 11, :o3, 7283228, 3
30
+ tz.transition 1935, 3, :o2, 19422901, 8
31
+ tz.transition 1935, 11, :o3, 7284323, 3
32
+ tz.transition 1936, 3, :o2, 19425829, 8
33
+ tz.transition 1936, 11, :o3, 7285421, 3
34
+ tz.transition 1937, 3, :o2, 19428749, 8
35
+ tz.transition 1937, 11, :o3, 7286516, 3
36
+ tz.transition 1938, 3, :o2, 19431669, 8
37
+ tz.transition 1938, 11, :o3, 7287611, 3
38
+ tz.transition 1939, 3, :o2, 19434589, 8
39
+ tz.transition 1939, 11, :o3, 7288706, 3
40
+ tz.transition 1940, 3, :o2, 19437517, 8
41
+ tz.transition 1940, 7, :o3, 7289435, 3
42
+ tz.transition 1941, 6, :o2, 19441285, 8
43
+ tz.transition 1941, 10, :o3, 7290848, 3
44
+ tz.transition 1943, 8, :o2, 19447501, 8
45
+ tz.transition 1943, 10, :o3, 7293038, 3
46
+ tz.transition 1946, 3, :o2, 19455045, 8
47
+ tz.transition 1946, 10, :o3, 7296284, 3
48
+ tz.transition 1963, 10, :o2, 19506429, 8
49
+ tz.transition 1963, 12, :o3, 7315136, 3
50
+ tz.transition 1964, 3, :o2, 19507645, 8
51
+ tz.transition 1964, 10, :o3, 7316051, 3
52
+ tz.transition 1965, 3, :o2, 19510565, 8
53
+ tz.transition 1965, 10, :o3, 7317146, 3
54
+ tz.transition 1966, 3, :o2, 19513485, 8
55
+ tz.transition 1966, 10, :o3, 7318241, 3
56
+ tz.transition 1967, 4, :o2, 19516661, 8
57
+ tz.transition 1967, 10, :o3, 7319294, 3
58
+ tz.transition 1968, 4, :o2, 19519629, 8
59
+ tz.transition 1968, 10, :o3, 7320407, 3
60
+ tz.transition 1969, 4, :o2, 19522541, 8
61
+ tz.transition 1969, 10, :o4, 7321499, 3
62
+ tz.transition 1974, 1, :o5, 128142000
63
+ tz.transition 1974, 5, :o4, 136605600
64
+ tz.transition 1988, 12, :o5, 596948400
65
+ tz.transition 1989, 3, :o4, 605066400
66
+ tz.transition 1989, 10, :o5, 624423600
67
+ tz.transition 1990, 3, :o4, 636516000
68
+ tz.transition 1990, 10, :o5, 656478000
69
+ tz.transition 1991, 3, :o6, 667792800
70
+ tz.transition 1991, 5, :o4, 673588800
71
+ tz.transition 1991, 10, :o5, 687927600
72
+ tz.transition 1992, 3, :o4, 699415200
73
+ tz.transition 1992, 10, :o5, 719377200
74
+ tz.transition 1993, 3, :o4, 731469600
75
+ tz.transition 1999, 10, :o3, 938919600
76
+ tz.transition 2000, 3, :o4, 952052400
77
+ tz.transition 2004, 5, :o6, 1085972400
78
+ tz.transition 2004, 7, :o4, 1090728000
79
+ tz.transition 2007, 12, :o5, 1198983600
80
+ tz.transition 2008, 1, :o4, 1200880800
81
+ end
82
+ end
83
+ end
84
+ end
85
+ end
86
+ end
@@ -108,91 +108,91 @@ module TZInfo
108
108
  tz.transition 2006, 10, :o2, 1162098000
109
109
  tz.transition 2007, 3, :o3, 1173589200
110
110
  tz.transition 2007, 10, :o2, 1193547600
111
- tz.transition 2008, 3, :o3, 1205038800
111
+ tz.transition 2008, 3, :o3, 1205643600
112
112
  tz.transition 2008, 10, :o2, 1224997200
113
- tz.transition 2009, 3, :o3, 1236488400
113
+ tz.transition 2009, 3, :o3, 1237093200
114
114
  tz.transition 2009, 10, :o2, 1256446800
115
- tz.transition 2010, 3, :o3, 1268542800
115
+ tz.transition 2010, 3, :o3, 1269147600
116
116
  tz.transition 2010, 10, :o2, 1288501200
117
- tz.transition 2011, 3, :o3, 1299992400
117
+ tz.transition 2011, 3, :o3, 1300597200
118
118
  tz.transition 2011, 10, :o2, 1319950800
119
- tz.transition 2012, 3, :o3, 1331442000
119
+ tz.transition 2012, 3, :o3, 1332046800
120
120
  tz.transition 2012, 10, :o2, 1351400400
121
- tz.transition 2013, 3, :o3, 1362891600
121
+ tz.transition 2013, 3, :o3, 1363496400
122
122
  tz.transition 2013, 10, :o2, 1382850000
123
- tz.transition 2014, 3, :o3, 1394341200
123
+ tz.transition 2014, 3, :o3, 1394946000
124
124
  tz.transition 2014, 10, :o2, 1414299600
125
- tz.transition 2015, 3, :o3, 1425790800
125
+ tz.transition 2015, 3, :o3, 1426395600
126
126
  tz.transition 2015, 10, :o2, 1445749200
127
- tz.transition 2016, 3, :o3, 1457845200
127
+ tz.transition 2016, 3, :o3, 1458450000
128
128
  tz.transition 2016, 10, :o2, 1477803600
129
- tz.transition 2017, 3, :o3, 1489294800
129
+ tz.transition 2017, 3, :o3, 1489899600
130
130
  tz.transition 2017, 10, :o2, 1509253200
131
- tz.transition 2018, 3, :o3, 1520744400
131
+ tz.transition 2018, 3, :o3, 1521349200
132
132
  tz.transition 2018, 10, :o2, 1540702800
133
- tz.transition 2019, 3, :o3, 1552194000
133
+ tz.transition 2019, 3, :o3, 1552798800
134
134
  tz.transition 2019, 10, :o2, 1572152400
135
- tz.transition 2020, 3, :o3, 1583643600
135
+ tz.transition 2020, 3, :o3, 1584248400
136
136
  tz.transition 2020, 10, :o2, 1603602000
137
- tz.transition 2021, 3, :o3, 1615698000
137
+ tz.transition 2021, 3, :o3, 1616302800
138
138
  tz.transition 2021, 10, :o2, 1635656400
139
- tz.transition 2022, 3, :o3, 1647147600
139
+ tz.transition 2022, 3, :o3, 1647752400
140
140
  tz.transition 2022, 10, :o2, 1667106000
141
- tz.transition 2023, 3, :o3, 1678597200
141
+ tz.transition 2023, 3, :o3, 1679202000
142
142
  tz.transition 2023, 10, :o2, 1698555600
143
- tz.transition 2024, 3, :o3, 1710046800
143
+ tz.transition 2024, 3, :o3, 1710651600
144
144
  tz.transition 2024, 10, :o2, 1730005200
145
- tz.transition 2025, 3, :o3, 1741496400
145
+ tz.transition 2025, 3, :o3, 1742101200
146
146
  tz.transition 2025, 10, :o2, 1761454800
147
- tz.transition 2026, 3, :o3, 1772946000
147
+ tz.transition 2026, 3, :o3, 1773550800
148
148
  tz.transition 2026, 10, :o2, 1792904400
149
- tz.transition 2027, 3, :o3, 1805000400
149
+ tz.transition 2027, 3, :o3, 1805605200
150
150
  tz.transition 2027, 10, :o2, 1824958800
151
- tz.transition 2028, 3, :o3, 1836450000
151
+ tz.transition 2028, 3, :o3, 1837054800
152
152
  tz.transition 2028, 10, :o2, 1856408400
153
- tz.transition 2029, 3, :o3, 1867899600
153
+ tz.transition 2029, 3, :o3, 1868504400
154
154
  tz.transition 2029, 10, :o2, 1887858000
155
- tz.transition 2030, 3, :o3, 1899349200
155
+ tz.transition 2030, 3, :o3, 1899954000
156
156
  tz.transition 2030, 10, :o2, 1919307600
157
- tz.transition 2031, 3, :o3, 1930798800
157
+ tz.transition 2031, 3, :o3, 1931403600
158
158
  tz.transition 2031, 10, :o2, 1950757200
159
- tz.transition 2032, 3, :o3, 1962853200
159
+ tz.transition 2032, 3, :o3, 1963458000
160
160
  tz.transition 2032, 10, :o2, 1982811600
161
- tz.transition 2033, 3, :o3, 1994302800
161
+ tz.transition 2033, 3, :o3, 1994907600
162
162
  tz.transition 2033, 10, :o2, 2014261200
163
- tz.transition 2034, 3, :o3, 2025752400
163
+ tz.transition 2034, 3, :o3, 2026357200
164
164
  tz.transition 2034, 10, :o2, 2045710800
165
- tz.transition 2035, 3, :o3, 2057202000
165
+ tz.transition 2035, 3, :o3, 2057806800
166
166
  tz.transition 2035, 10, :o2, 2077160400
167
- tz.transition 2036, 3, :o3, 2088651600
167
+ tz.transition 2036, 3, :o3, 2089256400
168
168
  tz.transition 2036, 10, :o2, 2108610000
169
- tz.transition 2037, 3, :o3, 2120101200
169
+ tz.transition 2037, 3, :o3, 2120706000
170
170
  tz.transition 2037, 10, :o2, 2140059600
171
- tz.transition 2038, 3, :o3, 59171921, 24
171
+ tz.transition 2038, 3, :o3, 59172089, 24
172
172
  tz.transition 2038, 10, :o2, 59177465, 24
173
- tz.transition 2039, 3, :o3, 59180657, 24
173
+ tz.transition 2039, 3, :o3, 59180825, 24
174
174
  tz.transition 2039, 10, :o2, 59186201, 24
175
- tz.transition 2040, 3, :o3, 59189393, 24
175
+ tz.transition 2040, 3, :o3, 59189561, 24
176
176
  tz.transition 2040, 10, :o2, 59194937, 24
177
- tz.transition 2041, 3, :o3, 59198129, 24
177
+ tz.transition 2041, 3, :o3, 59198297, 24
178
178
  tz.transition 2041, 10, :o2, 59203673, 24
179
- tz.transition 2042, 3, :o3, 59206865, 24
179
+ tz.transition 2042, 3, :o3, 59207033, 24
180
180
  tz.transition 2042, 10, :o2, 59212409, 24
181
- tz.transition 2043, 3, :o3, 59215601, 24
181
+ tz.transition 2043, 3, :o3, 59215769, 24
182
182
  tz.transition 2043, 10, :o2, 59221145, 24
183
- tz.transition 2044, 3, :o3, 59224505, 24
183
+ tz.transition 2044, 3, :o3, 59224673, 24
184
184
  tz.transition 2044, 10, :o2, 59230049, 24
185
- tz.transition 2045, 3, :o3, 59233241, 24
185
+ tz.transition 2045, 3, :o3, 59233409, 24
186
186
  tz.transition 2045, 10, :o2, 59238785, 24
187
- tz.transition 2046, 3, :o3, 59241977, 24
187
+ tz.transition 2046, 3, :o3, 59242145, 24
188
188
  tz.transition 2046, 10, :o2, 59247521, 24
189
- tz.transition 2047, 3, :o3, 59250713, 24
189
+ tz.transition 2047, 3, :o3, 59250881, 24
190
190
  tz.transition 2047, 10, :o2, 59256257, 24
191
- tz.transition 2048, 3, :o3, 59259449, 24
191
+ tz.transition 2048, 3, :o3, 59259617, 24
192
192
  tz.transition 2048, 10, :o2, 59264993, 24
193
- tz.transition 2049, 3, :o3, 59268353, 24
193
+ tz.transition 2049, 3, :o3, 59268521, 24
194
194
  tz.transition 2049, 10, :o2, 59273897, 24
195
- tz.transition 2050, 3, :o3, 59277089, 24
195
+ tz.transition 2050, 3, :o3, 59277257, 24
196
196
  tz.transition 2050, 10, :o2, 59282633, 24
197
197
  end
198
198
  end
@@ -66,92 +66,6 @@ module TZInfo
66
66
  tz.transition 2006, 10, :o2, 1159660800
67
67
  tz.transition 2007, 4, :o3, 1175385600
68
68
  tz.transition 2007, 10, :o2, 1191196800
69
- tz.transition 2008, 4, :o3, 1207008000
70
- tz.transition 2008, 10, :o2, 1222819200
71
- tz.transition 2009, 4, :o3, 1238544000
72
- tz.transition 2009, 10, :o2, 1254355200
73
- tz.transition 2010, 4, :o3, 1270080000
74
- tz.transition 2010, 10, :o2, 1285891200
75
- tz.transition 2011, 4, :o3, 1301616000
76
- tz.transition 2011, 10, :o2, 1317427200
77
- tz.transition 2012, 4, :o3, 1333238400
78
- tz.transition 2012, 10, :o2, 1349049600
79
- tz.transition 2013, 4, :o3, 1364774400
80
- tz.transition 2013, 10, :o2, 1380585600
81
- tz.transition 2014, 4, :o3, 1396310400
82
- tz.transition 2014, 10, :o2, 1412121600
83
- tz.transition 2015, 4, :o3, 1427846400
84
- tz.transition 2015, 10, :o2, 1443657600
85
- tz.transition 2016, 4, :o3, 1459468800
86
- tz.transition 2016, 10, :o2, 1475280000
87
- tz.transition 2017, 4, :o3, 1491004800
88
- tz.transition 2017, 10, :o2, 1506816000
89
- tz.transition 2018, 4, :o3, 1522540800
90
- tz.transition 2018, 10, :o2, 1538352000
91
- tz.transition 2019, 4, :o3, 1554076800
92
- tz.transition 2019, 10, :o2, 1569888000
93
- tz.transition 2020, 4, :o3, 1585699200
94
- tz.transition 2020, 10, :o2, 1601510400
95
- tz.transition 2021, 4, :o3, 1617235200
96
- tz.transition 2021, 10, :o2, 1633046400
97
- tz.transition 2022, 4, :o3, 1648771200
98
- tz.transition 2022, 10, :o2, 1664582400
99
- tz.transition 2023, 4, :o3, 1680307200
100
- tz.transition 2023, 10, :o2, 1696118400
101
- tz.transition 2024, 4, :o3, 1711929600
102
- tz.transition 2024, 10, :o2, 1727740800
103
- tz.transition 2025, 4, :o3, 1743465600
104
- tz.transition 2025, 10, :o2, 1759276800
105
- tz.transition 2026, 4, :o3, 1775001600
106
- tz.transition 2026, 10, :o2, 1790812800
107
- tz.transition 2027, 4, :o3, 1806537600
108
- tz.transition 2027, 10, :o2, 1822348800
109
- tz.transition 2028, 4, :o3, 1838160000
110
- tz.transition 2028, 10, :o2, 1853971200
111
- tz.transition 2029, 4, :o3, 1869696000
112
- tz.transition 2029, 10, :o2, 1885507200
113
- tz.transition 2030, 4, :o3, 1901232000
114
- tz.transition 2030, 10, :o2, 1917043200
115
- tz.transition 2031, 4, :o3, 1932768000
116
- tz.transition 2031, 10, :o2, 1948579200
117
- tz.transition 2032, 4, :o3, 1964390400
118
- tz.transition 2032, 10, :o2, 1980201600
119
- tz.transition 2033, 4, :o3, 1995926400
120
- tz.transition 2033, 10, :o2, 2011737600
121
- tz.transition 2034, 4, :o3, 2027462400
122
- tz.transition 2034, 10, :o2, 2043273600
123
- tz.transition 2035, 4, :o3, 2058998400
124
- tz.transition 2035, 10, :o2, 2074809600
125
- tz.transition 2036, 4, :o3, 2090620800
126
- tz.transition 2036, 10, :o2, 2106432000
127
- tz.transition 2037, 4, :o3, 2122156800
128
- tz.transition 2037, 10, :o2, 2137968000
129
- tz.transition 2038, 4, :o3, 4931029, 2
130
- tz.transition 2038, 10, :o2, 4931395, 2
131
- tz.transition 2039, 4, :o3, 4931759, 2
132
- tz.transition 2039, 10, :o2, 4932125, 2
133
- tz.transition 2040, 4, :o3, 4932491, 2
134
- tz.transition 2040, 10, :o2, 4932857, 2
135
- tz.transition 2041, 4, :o3, 4933221, 2
136
- tz.transition 2041, 10, :o2, 4933587, 2
137
- tz.transition 2042, 4, :o3, 4933951, 2
138
- tz.transition 2042, 10, :o2, 4934317, 2
139
- tz.transition 2043, 4, :o3, 4934681, 2
140
- tz.transition 2043, 10, :o2, 4935047, 2
141
- tz.transition 2044, 4, :o3, 4935413, 2
142
- tz.transition 2044, 10, :o2, 4935779, 2
143
- tz.transition 2045, 4, :o3, 4936143, 2
144
- tz.transition 2045, 10, :o2, 4936509, 2
145
- tz.transition 2046, 4, :o3, 4936873, 2
146
- tz.transition 2046, 10, :o2, 4937239, 2
147
- tz.transition 2047, 4, :o3, 4937603, 2
148
- tz.transition 2047, 10, :o2, 4937969, 2
149
- tz.transition 2048, 4, :o3, 4938335, 2
150
- tz.transition 2048, 10, :o2, 4938701, 2
151
- tz.transition 2049, 4, :o3, 4939065, 2
152
- tz.transition 2049, 10, :o2, 4939431, 2
153
- tz.transition 2050, 4, :o3, 4939795, 2
154
- tz.transition 2050, 10, :o2, 4940161, 2
155
69
  end
156
70
  end
157
71
  end
@@ -6,19 +6,7 @@ module TZInfo
6
6
  module Calcutta
7
7
  include TimezoneDefinition
8
8
 
9
- timezone 'Asia/Calcutta' do |tz|
10
- tz.offset :o0, 21208, 0, :LMT
11
- tz.offset :o1, 21200, 0, :HMT
12
- tz.offset :o2, 23400, 0, :BURT
13
- tz.offset :o3, 19800, 0, :IST
14
- tz.offset :o4, 19800, 3600, :IST
15
-
16
- tz.transition 1879, 12, :o1, 26003324749, 10800
17
- tz.transition 1941, 9, :o2, 524937943, 216
18
- tz.transition 1942, 5, :o3, 116663723, 48
19
- tz.transition 1942, 8, :o4, 116668957, 48
20
- tz.transition 1945, 10, :o3, 116723675, 48
21
- end
9
+ linked_timezone 'Asia/Calcutta', 'Asia/Kolkata'
22
10
  end
23
11
  end
24
12
  end
@@ -102,92 +102,92 @@ module TZInfo
102
102
  tz.transition 2006, 9, :o1, 1158872400
103
103
  tz.transition 2007, 3, :o2, 1175205600
104
104
  tz.transition 2007, 11, :o1, 1193950800
105
- tz.transition 2008, 3, :o2, 1206655200
106
- tz.transition 2008, 11, :o1, 1226005200
107
- tz.transition 2009, 3, :o2, 1238104800
108
- tz.transition 2009, 11, :o1, 1257454800
109
- tz.transition 2010, 3, :o2, 1269554400
110
- tz.transition 2010, 11, :o1, 1288904400
111
- tz.transition 2011, 3, :o2, 1301004000
112
- tz.transition 2011, 11, :o1, 1320354000
113
- tz.transition 2012, 3, :o2, 1333058400
114
- tz.transition 2012, 11, :o1, 1351803600
115
- tz.transition 2013, 3, :o2, 1364508000
116
- tz.transition 2013, 10, :o1, 1383253200
117
- tz.transition 2014, 3, :o2, 1395957600
118
- tz.transition 2014, 11, :o1, 1415307600
119
- tz.transition 2015, 3, :o2, 1427407200
120
- tz.transition 2015, 11, :o1, 1446757200
121
- tz.transition 2016, 3, :o2, 1458856800
122
- tz.transition 2016, 11, :o1, 1478206800
123
- tz.transition 2017, 3, :o2, 1490911200
124
- tz.transition 2017, 11, :o1, 1509656400
125
- tz.transition 2018, 3, :o2, 1522360800
126
- tz.transition 2018, 11, :o1, 1541106000
127
- tz.transition 2019, 3, :o2, 1553810400
128
- tz.transition 2019, 10, :o1, 1572555600
129
- tz.transition 2020, 3, :o2, 1585260000
130
- tz.transition 2020, 11, :o1, 1604610000
131
- tz.transition 2021, 3, :o2, 1616709600
132
- tz.transition 2021, 11, :o1, 1636059600
133
- tz.transition 2022, 3, :o2, 1648159200
134
- tz.transition 2022, 11, :o1, 1667509200
135
- tz.transition 2023, 3, :o2, 1680213600
136
- tz.transition 2023, 11, :o1, 1698958800
137
- tz.transition 2024, 3, :o2, 1711663200
138
- tz.transition 2024, 10, :o1, 1730408400
139
- tz.transition 2025, 3, :o2, 1743112800
140
- tz.transition 2025, 11, :o1, 1762462800
141
- tz.transition 2026, 3, :o2, 1774562400
142
- tz.transition 2026, 11, :o1, 1793912400
143
- tz.transition 2027, 3, :o2, 1806012000
144
- tz.transition 2027, 11, :o1, 1825362000
145
- tz.transition 2028, 3, :o2, 1838066400
146
- tz.transition 2028, 11, :o1, 1856811600
147
- tz.transition 2029, 3, :o2, 1869516000
148
- tz.transition 2029, 11, :o1, 1888261200
149
- tz.transition 2030, 3, :o2, 1900965600
150
- tz.transition 2030, 10, :o1, 1919710800
151
- tz.transition 2031, 3, :o2, 1932415200
152
- tz.transition 2031, 11, :o1, 1951765200
153
- tz.transition 2032, 3, :o2, 1963864800
154
- tz.transition 2032, 11, :o1, 1983214800
155
- tz.transition 2033, 3, :o2, 1995314400
156
- tz.transition 2033, 11, :o1, 2014664400
157
- tz.transition 2034, 3, :o2, 2027368800
158
- tz.transition 2034, 11, :o1, 2046114000
159
- tz.transition 2035, 3, :o2, 2058818400
160
- tz.transition 2035, 11, :o1, 2077563600
161
- tz.transition 2036, 3, :o2, 2090268000
162
- tz.transition 2036, 11, :o1, 2109618000
163
- tz.transition 2037, 3, :o2, 2121717600
164
- tz.transition 2037, 11, :o1, 2141067600
165
- tz.transition 2038, 3, :o2, 29586101, 12
166
- tz.transition 2038, 11, :o1, 19725859, 8
167
- tz.transition 2039, 3, :o2, 29590469, 12
168
- tz.transition 2039, 11, :o1, 19728771, 8
169
- tz.transition 2040, 3, :o2, 29594921, 12
170
- tz.transition 2040, 11, :o1, 19731683, 8
171
- tz.transition 2041, 3, :o2, 29599289, 12
172
- tz.transition 2041, 10, :o1, 19734595, 8
173
- tz.transition 2042, 3, :o2, 29603657, 12
174
- tz.transition 2042, 11, :o1, 19737563, 8
175
- tz.transition 2043, 3, :o2, 29608025, 12
176
- tz.transition 2043, 11, :o1, 19740475, 8
177
- tz.transition 2044, 3, :o2, 29612393, 12
178
- tz.transition 2044, 11, :o1, 19743387, 8
179
- tz.transition 2045, 3, :o2, 29616845, 12
180
- tz.transition 2045, 11, :o1, 19746299, 8
181
- tz.transition 2046, 3, :o2, 29621213, 12
182
- tz.transition 2046, 11, :o1, 19749211, 8
183
- tz.transition 2047, 3, :o2, 29625581, 12
184
- tz.transition 2047, 10, :o1, 19752123, 8
185
- tz.transition 2048, 3, :o2, 29629949, 12
186
- tz.transition 2048, 11, :o1, 19755091, 8
187
- tz.transition 2049, 3, :o2, 29634317, 12
188
- tz.transition 2049, 11, :o1, 19758003, 8
189
- tz.transition 2050, 3, :o2, 29638685, 12
190
- tz.transition 2050, 11, :o1, 19760915, 8
105
+ tz.transition 2008, 4, :o2, 1207260000
106
+ tz.transition 2008, 9, :o1, 1222808400
107
+ tz.transition 2009, 4, :o2, 1238709600
108
+ tz.transition 2009, 9, :o1, 1254344400
109
+ tz.transition 2010, 4, :o2, 1270159200
110
+ tz.transition 2010, 9, :o1, 1285880400
111
+ tz.transition 2011, 3, :o2, 1301608800
112
+ tz.transition 2011, 9, :o1, 1317416400
113
+ tz.transition 2012, 4, :o2, 1333663200
114
+ tz.transition 2012, 9, :o1, 1349038800
115
+ tz.transition 2013, 4, :o2, 1365112800
116
+ tz.transition 2013, 9, :o1, 1380574800
117
+ tz.transition 2014, 4, :o2, 1396562400
118
+ tz.transition 2014, 9, :o1, 1412110800
119
+ tz.transition 2015, 4, :o2, 1428012000
120
+ tz.transition 2015, 9, :o1, 1443646800
121
+ tz.transition 2016, 3, :o2, 1459461600
122
+ tz.transition 2016, 9, :o1, 1475269200
123
+ tz.transition 2017, 4, :o2, 1491516000
124
+ tz.transition 2017, 9, :o1, 1506805200
125
+ tz.transition 2018, 4, :o2, 1522965600
126
+ tz.transition 2018, 9, :o1, 1538341200
127
+ tz.transition 2019, 4, :o2, 1554415200
128
+ tz.transition 2019, 9, :o1, 1569877200
129
+ tz.transition 2020, 4, :o2, 1585864800
130
+ tz.transition 2020, 9, :o1, 1601499600
131
+ tz.transition 2021, 4, :o2, 1617314400
132
+ tz.transition 2021, 9, :o1, 1633035600
133
+ tz.transition 2022, 3, :o2, 1648764000
134
+ tz.transition 2022, 9, :o1, 1664571600
135
+ tz.transition 2023, 4, :o2, 1680818400
136
+ tz.transition 2023, 9, :o1, 1696107600
137
+ tz.transition 2024, 4, :o2, 1712268000
138
+ tz.transition 2024, 9, :o1, 1727730000
139
+ tz.transition 2025, 4, :o2, 1743717600
140
+ tz.transition 2025, 9, :o1, 1759266000
141
+ tz.transition 2026, 4, :o2, 1775167200
142
+ tz.transition 2026, 9, :o1, 1790802000
143
+ tz.transition 2027, 4, :o2, 1806616800
144
+ tz.transition 2027, 9, :o1, 1822338000
145
+ tz.transition 2028, 4, :o2, 1838671200
146
+ tz.transition 2028, 9, :o1, 1853960400
147
+ tz.transition 2029, 4, :o2, 1870120800
148
+ tz.transition 2029, 9, :o1, 1885496400
149
+ tz.transition 2030, 4, :o2, 1901570400
150
+ tz.transition 2030, 9, :o1, 1917032400
151
+ tz.transition 2031, 4, :o2, 1933020000
152
+ tz.transition 2031, 9, :o1, 1948568400
153
+ tz.transition 2032, 4, :o2, 1964469600
154
+ tz.transition 2032, 9, :o1, 1980190800
155
+ tz.transition 2033, 3, :o2, 1995919200
156
+ tz.transition 2033, 9, :o1, 2011726800
157
+ tz.transition 2034, 4, :o2, 2027973600
158
+ tz.transition 2034, 9, :o1, 2043262800
159
+ tz.transition 2035, 4, :o2, 2059423200
160
+ tz.transition 2035, 9, :o1, 2074798800
161
+ tz.transition 2036, 4, :o2, 2090872800
162
+ tz.transition 2036, 9, :o1, 2106421200
163
+ tz.transition 2037, 4, :o2, 2122322400
164
+ tz.transition 2037, 9, :o1, 2137957200
165
+ tz.transition 2038, 4, :o2, 29586185, 12
166
+ tz.transition 2038, 9, :o1, 19725579, 8
167
+ tz.transition 2039, 3, :o2, 29590553, 12
168
+ tz.transition 2039, 9, :o1, 19728499, 8
169
+ tz.transition 2040, 4, :o2, 29595005, 12
170
+ tz.transition 2040, 9, :o1, 19731427, 8
171
+ tz.transition 2041, 4, :o2, 29599373, 12
172
+ tz.transition 2041, 9, :o1, 19734347, 8
173
+ tz.transition 2042, 4, :o2, 29603741, 12
174
+ tz.transition 2042, 9, :o1, 19737267, 8
175
+ tz.transition 2043, 4, :o2, 29608109, 12
176
+ tz.transition 2043, 9, :o1, 19740187, 8
177
+ tz.transition 2044, 3, :o2, 29612477, 12
178
+ tz.transition 2044, 9, :o1, 19743115, 8
179
+ tz.transition 2045, 4, :o2, 29616929, 12
180
+ tz.transition 2045, 9, :o1, 19746035, 8
181
+ tz.transition 2046, 4, :o2, 29621297, 12
182
+ tz.transition 2046, 9, :o1, 19748955, 8
183
+ tz.transition 2047, 4, :o2, 29625665, 12
184
+ tz.transition 2047, 9, :o1, 19751875, 8
185
+ tz.transition 2048, 4, :o2, 29630033, 12
186
+ tz.transition 2048, 9, :o1, 19754803, 8
187
+ tz.transition 2049, 4, :o2, 29634401, 12
188
+ tz.transition 2049, 9, :o1, 19757723, 8
189
+ tz.transition 2050, 3, :o2, 29638769, 12
190
+ tz.transition 2050, 9, :o1, 19760643, 8
191
191
  end
192
192
  end
193
193
  end
@@ -0,0 +1,23 @@
1
+ require 'tzinfo/timezone_definition'
2
+
3
+ module TZInfo
4
+ module Definitions
5
+ module Asia
6
+ module Ho_Chi_Minh
7
+ include TimezoneDefinition
8
+
9
+ timezone 'Asia/Ho_Chi_Minh' do |tz|
10
+ tz.offset :o0, 25600, 0, :LMT
11
+ tz.offset :o1, 25580, 0, :SMT
12
+ tz.offset :o2, 25200, 0, :ICT
13
+ tz.offset :o3, 28800, 0, :ICT
14
+
15
+ tz.transition 1906, 6, :o1, 130537991, 54
16
+ tz.transition 1911, 3, :o2, 2612634701, 1080
17
+ tz.transition 1912, 4, :o3, 58068557, 24
18
+ tz.transition 1931, 4, :o2, 14558773, 6
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,25 @@
1
+ require 'tzinfo/timezone_definition'
2
+
3
+ module TZInfo
4
+ module Definitions
5
+ module Asia
6
+ module Kolkata
7
+ include TimezoneDefinition
8
+
9
+ timezone 'Asia/Kolkata' do |tz|
10
+ tz.offset :o0, 21208, 0, :LMT
11
+ tz.offset :o1, 21200, 0, :HMT
12
+ tz.offset :o2, 23400, 0, :BURT
13
+ tz.offset :o3, 19800, 0, :IST
14
+ tz.offset :o4, 19800, 3600, :IST
15
+
16
+ tz.transition 1879, 12, :o1, 26003324749, 10800
17
+ tz.transition 1941, 9, :o2, 524937943, 216
18
+ tz.transition 1942, 5, :o3, 116663723, 48
19
+ tz.transition 1942, 8, :o4, 116668957, 48
20
+ tz.transition 1945, 10, :o3, 116723675, 48
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
@@ -6,17 +6,7 @@ module TZInfo
6
6
  module Saigon
7
7
  include TimezoneDefinition
8
8
 
9
- timezone 'Asia/Saigon' do |tz|
10
- tz.offset :o0, 25600, 0, :LMT
11
- tz.offset :o1, 25580, 0, :SMT
12
- tz.offset :o2, 25200, 0, :ICT
13
- tz.offset :o3, 28800, 0, :ICT
14
-
15
- tz.transition 1906, 6, :o1, 130537991, 54
16
- tz.transition 1911, 3, :o2, 2612634701, 1080
17
- tz.transition 1912, 4, :o3, 58068557, 24
18
- tz.transition 1931, 4, :o2, 14558773, 6
19
- end
9
+ linked_timezone 'Asia/Saigon', 'Asia/Ho_Chi_Minh'
20
10
  end
21
11
  end
22
12
  end
@@ -46,7 +46,8 @@ module TZInfo
46
46
  end
47
47
  country 'AR', 'Argentina' do |c|
48
48
  c.timezone 'America/Argentina/Buenos_Aires', -173, 5, -1169, 20, 'Buenos Aires (BA, CF)'
49
- c.timezone 'America/Argentina/Cordoba', -157, 5, -3851, 60, 'most locations (CB, CC, CN, ER, FM, LP, MN, NQ, RN, SA, SE, SF, SL)'
49
+ c.timezone 'America/Argentina/Cordoba', -157, 5, -3851, 60, 'most locations (CB, CC, CN, ER, FM, LP, MN, NQ, RN, SA, SE, SF)'
50
+ c.timezone 'America/Argentina/San_Luis', -1999, 60, -1327, 20, 'San Luis (SL)'
50
51
  c.timezone 'America/Argentina/Jujuy', -1451, 60, -653, 10, 'Jujuy (JY)'
51
52
  c.timezone 'America/Argentina/Tucuman', -1609, 60, -3913, 60, 'Tucuman (TM)'
52
53
  c.timezone 'America/Argentina/Catamarca', -427, 15, -3947, 60, 'Catamarca (CT), Chubut (CH)'
@@ -397,7 +398,7 @@ module TZInfo
397
398
  c.timezone 'Europe/Isle_of_Man', 1083, 20, -67, 15
398
399
  end
399
400
  country 'IN', 'India' do |c|
400
- c.timezone 'Asia/Calcutta', 338, 15, 2651, 30
401
+ c.timezone 'Asia/Kolkata', 338, 15, 2651, 30
401
402
  end
402
403
  country 'IO', 'British Indian Ocean Territory' do |c|
403
404
  c.timezone 'Indian/Chagos', -22, 3, 869, 12
@@ -867,7 +868,7 @@ module TZInfo
867
868
  c.timezone 'America/St_Thomas', 367, 20, -974, 15
868
869
  end
869
870
  country 'VN', 'Vietnam' do |c|
870
- c.timezone 'Asia/Saigon', 43, 4, 320, 3
871
+ c.timezone 'Asia/Ho_Chi_Minh', 43, 4, 320, 3
871
872
  end
872
873
  country 'VU', 'Vanuatu' do |c|
873
874
  c.timezone 'Pacific/Efate', -53, 3, 2021, 12
@@ -72,6 +72,7 @@ module TZInfo
72
72
  timezone 'America/Argentina/Mendoza'
73
73
  timezone 'America/Argentina/Rio_Gallegos'
74
74
  timezone 'America/Argentina/San_Juan'
75
+ timezone 'America/Argentina/San_Luis'
75
76
  timezone 'America/Argentina/Tucuman'
76
77
  timezone 'America/Argentina/Ushuaia'
77
78
  timezone 'America/Aruba'
@@ -235,7 +236,7 @@ module TZInfo
235
236
  timezone 'Asia/Beirut'
236
237
  timezone 'Asia/Bishkek'
237
238
  timezone 'Asia/Brunei'
238
- timezone 'Asia/Calcutta'
239
+ linked_timezone 'Asia/Calcutta'
239
240
  timezone 'Asia/Choibalsan'
240
241
  timezone 'Asia/Chongqing'
241
242
  linked_timezone 'Asia/Chungking'
@@ -248,6 +249,7 @@ module TZInfo
248
249
  timezone 'Asia/Dushanbe'
249
250
  timezone 'Asia/Gaza'
250
251
  timezone 'Asia/Harbin'
252
+ timezone 'Asia/Ho_Chi_Minh'
251
253
  timezone 'Asia/Hong_Kong'
252
254
  timezone 'Asia/Hovd'
253
255
  timezone 'Asia/Irkutsk'
@@ -260,6 +262,7 @@ module TZInfo
260
262
  timezone 'Asia/Karachi'
261
263
  timezone 'Asia/Kashgar'
262
264
  timezone 'Asia/Katmandu'
265
+ timezone 'Asia/Kolkata'
263
266
  timezone 'Asia/Krasnoyarsk'
264
267
  timezone 'Asia/Kuala_Lumpur'
265
268
  timezone 'Asia/Kuching'
@@ -284,7 +287,7 @@ module TZInfo
284
287
  timezone 'Asia/Riyadh87'
285
288
  timezone 'Asia/Riyadh88'
286
289
  timezone 'Asia/Riyadh89'
287
- timezone 'Asia/Saigon'
290
+ linked_timezone 'Asia/Saigon'
288
291
  timezone 'Asia/Sakhalin'
289
292
  timezone 'Asia/Samarkand'
290
293
  timezone 'Asia/Seoul'
@@ -48,7 +48,7 @@ module TZInfo
48
48
  # seconds since the epoch. If denominator is specified numerator_or_time
49
49
  # and denominator are used to create a DateTime as follows:
50
50
  #
51
- # DateTime.new0(Rational.new!(numerator_or_time, denominator), 0, Date::ITALY)
51
+ # DateTime.new!(Rational.new!(numerator_or_time, denominator), 0, Date::ITALY)
52
52
  #
53
53
  # For performance reasons, the numerator and denominator must be specified
54
54
  # in their lowest form.
@@ -70,7 +70,18 @@ module TZInfo
70
70
  unless @denominator
71
71
  @at = TimeOrDateTime.new(@numerator_or_time)
72
72
  else
73
- @at = TimeOrDateTime.new(DateTime.new0(Rational.new!(@numerator_or_time, @denominator), 0, Date::ITALY))
73
+ r = Rational.new!(@numerator_or_time, @denominator)
74
+
75
+ # Ruby 1.8.6 introduced new! and deprecated new0.
76
+ # Ruby 1.9.0 removed new0.
77
+ # We still need to support new0 for older versions of Ruby.
78
+ if DateTime.respond_to? :new!
79
+ dt = DateTime.new!(r, 0, Date::ITALY)
80
+ else
81
+ dt = DateTime.new0(r, 0, Date::ITALY)
82
+ end
83
+
84
+ @at = TimeOrDateTime.new(dt)
74
85
  end
75
86
  end
76
87
 
data/test/tc_country.rb CHANGED
@@ -116,13 +116,13 @@ class TCCountry < Test::Unit::TestCase
116
116
  def test_equality
117
117
  assert_equal(true, Country.get('GB') == Country.get('GB'))
118
118
  assert_equal(false, Country.get('GB') == Country.get('US'))
119
- assert_nil(Country.get('GB') == Object.new)
119
+ assert(!(Country.get('GB') == Object.new))
120
120
  end
121
121
 
122
122
  def test_eql
123
123
  assert_equal(true, Country.get('GB').eql?(Country.get('GB')))
124
124
  assert_equal(false, Country.get('GB').eql?(Country.get('US')))
125
- assert_nil(Country.get('GB').eql?(Object.new))
125
+ assert(!Country.get('GB').eql?(Object.new))
126
126
  end
127
127
 
128
128
  def test_hash
data/test/tc_timezone.rb CHANGED
@@ -781,14 +781,14 @@ class TCTimezone < Test::Unit::TestCase
781
781
  assert_equal(true, TestTimezone.new('Europe/London') == TestTimezone.new('Europe/London'))
782
782
  assert_equal(false, TestTimezone.new('Europe/London') == TestTimezone.new('Europe/london'))
783
783
  assert_equal(false, TestTimezone.new('Europe/London') == TestTimezone.new('Europe/Paris'))
784
- assert_nil(TestTimezone.new('Europe/London') == Object.new)
784
+ assert(!(TestTimezone.new('Europe/London') == Object.new))
785
785
  end
786
786
 
787
787
  def test_eql
788
788
  assert_equal(true, TestTimezone.new('Europe/London').eql?(TestTimezone.new('Europe/London')))
789
789
  assert_equal(false, TestTimezone.new('Europe/London').eql?(TestTimezone.new('Europe/london')))
790
790
  assert_equal(false, TestTimezone.new('Europe/London').eql?(TestTimezone.new('Europe/Paris')))
791
- assert_nil(TestTimezone.new('Europe/London') == Object.new)
791
+ assert(!TestTimezone.new('Europe/London').eql?(Object.new))
792
792
  end
793
793
 
794
794
  def test_hash
@@ -51,7 +51,7 @@ class TCTimezoneProxy < Test::Unit::TestCase
51
51
  def test_equals
52
52
  assert_equal(true, TimezoneProxy.new('Europe/London') == TimezoneProxy.new('Europe/London'))
53
53
  assert_equal(false, TimezoneProxy.new('Europe/London') == TimezoneProxy.new('Europe/Paris'))
54
- assert_nil(TimezoneProxy.new('Europe/London') == Object.new)
54
+ assert(!(TimezoneProxy.new('Europe/London') == Object.new))
55
55
  end
56
56
 
57
57
  def test_compare
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tzinfo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philip Ross
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-03-10 00:00:00 +00:00
12
+ date: 2008-03-24 00:00:00 +00:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -105,6 +105,7 @@ files:
105
105
  - lib/tzinfo/definitions/America/Argentina/Mendoza.rb
106
106
  - lib/tzinfo/definitions/America/Argentina/Rio_Gallegos.rb
107
107
  - lib/tzinfo/definitions/America/Argentina/San_Juan.rb
108
+ - lib/tzinfo/definitions/America/Argentina/San_Luis.rb
108
109
  - lib/tzinfo/definitions/America/Argentina/Tucuman.rb
109
110
  - lib/tzinfo/definitions/America/Argentina/Ushuaia.rb
110
111
  - lib/tzinfo/definitions/America/Aruba.rb
@@ -289,6 +290,7 @@ files:
289
290
  - lib/tzinfo/definitions/Asia/Harbin.rb
290
291
  - lib/tzinfo/definitions/Asia/Hong_Kong.rb
291
292
  - lib/tzinfo/definitions/Asia/Hovd.rb
293
+ - lib/tzinfo/definitions/Asia/Ho_Chi_Minh.rb
292
294
  - lib/tzinfo/definitions/Asia/Irkutsk.rb
293
295
  - lib/tzinfo/definitions/Asia/Istanbul.rb
294
296
  - lib/tzinfo/definitions/Asia/Jakarta.rb
@@ -299,6 +301,7 @@ files:
299
301
  - lib/tzinfo/definitions/Asia/Karachi.rb
300
302
  - lib/tzinfo/definitions/Asia/Kashgar.rb
301
303
  - lib/tzinfo/definitions/Asia/Katmandu.rb
304
+ - lib/tzinfo/definitions/Asia/Kolkata.rb
302
305
  - lib/tzinfo/definitions/Asia/Krasnoyarsk.rb
303
306
  - lib/tzinfo/definitions/Asia/Kuala_Lumpur.rb
304
307
  - lib/tzinfo/definitions/Asia/Kuching.rb