timezone 0.1.5 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +4 -0
- data/CHANGES.markdown +22 -0
- data/CONTRIBUTING.markdown +7 -0
- data/README.markdown +5 -1
- data/Rakefile +10 -0
- data/data/Africa/Cairo.json +0 -720
- data/data/Africa/Casablanca.json +18 -0
- data/data/Africa/Dar_es_Salaam.json +5 -5
- data/data/Africa/Juba.json +318 -0
- data/data/Africa/Kampala.json +5 -5
- data/data/Africa/Nairobi.json +5 -5
- data/data/America/Coral_Harbour.json +75 -0
- data/data/America/Creston.json +39 -0
- data/data/America/Goose_Bay.json +325 -316
- data/data/America/Havana.json +4 -4
- data/data/America/Juneau.json +6 -6
- data/data/America/Kralendijk.json +30 -0
- data/data/America/Lower_Princes.json +30 -0
- data/data/America/Metlakatla.json +345 -0
- data/data/America/North_Dakota/Beulah.json +1596 -0
- data/data/America/Resolute.json +313 -322
- data/data/America/Santiago.json +8 -8
- data/data/America/Sitka.json +1560 -0
- data/data/America/St_Johns.json +325 -316
- data/data/Asia/Anadyr.json +2 -713
- data/data/Asia/Hebron.json +876 -0
- data/data/Asia/Irkutsk.json +2 -713
- data/data/Asia/Istanbul.json +4 -4
- data/data/Asia/Kamchatka.json +2 -713
- data/data/Asia/Krasnoyarsk.json +2 -713
- data/data/Asia/Magadan.json +2 -713
- data/data/Asia/Novokuznetsk.json +2 -713
- data/data/Asia/Novosibirsk.json +2 -713
- data/data/Asia/Omsk.json +2 -713
- data/data/Asia/Sakhalin.json +2 -713
- data/data/Asia/Vladivostok.json +2 -713
- data/data/Asia/Yakutsk.json +2 -713
- data/data/Asia/Yekaterinburg.json +2 -713
- data/data/Atlantic/Stanley.json +0 -18
- data/data/Europe/Istanbul.json +4 -4
- data/data/Europe/Kaliningrad.json +2 -713
- data/data/Europe/Moscow.json +2 -713
- data/data/Europe/Samara.json +2 -713
- data/data/Europe/Volgograd.json +2 -713
- data/data/Pacific/Apia.json +32 -5
- data/data/Pacific/Chuuk.json +0 -0
- data/data/Pacific/Easter.json +8 -8
- data/data/Pacific/Fiji.json +4 -4
- data/data/Pacific/Honolulu.json +10 -19
- data/data/Pacific/Pohnpei.json +0 -0
- data/lib/timezone/rule.rb +30 -0
- data/lib/timezone/version.rb +1 -1
- data/lib/timezone/zone.rb +18 -1
- data/test/data/Helsinki_rules_without_timestamps.json +1017 -0
- data/test/rule_test.rb +42 -0
- data/test/timezone_test.rb +13 -10
- data/timezone.gemspec +3 -0
- metadata +54 -6
- data/data/LICENSE +0 -21
data/data/Africa/Casablanca.json
CHANGED
@@ -228,6 +228,24 @@
|
|
228
228
|
{
|
229
229
|
"_from": "2010-08-07T23:00:00Z",
|
230
230
|
"from": 1281222000000,
|
231
|
+
"_to": "2011-04-03T00:00:00Z",
|
232
|
+
"to": 1301788800000,
|
233
|
+
"dst": false,
|
234
|
+
"offset": 0,
|
235
|
+
"name": "WET"
|
236
|
+
},
|
237
|
+
{
|
238
|
+
"_from": "2011-04-03T00:00:00Z",
|
239
|
+
"from": 1301788800000,
|
240
|
+
"_to": "2011-07-30T23:00:00Z",
|
241
|
+
"to": 1312066800000,
|
242
|
+
"dst": true,
|
243
|
+
"offset": 3600,
|
244
|
+
"name": "WEST"
|
245
|
+
},
|
246
|
+
{
|
247
|
+
"_from": "2011-07-30T23:00:00Z",
|
248
|
+
"from": 1312066800000,
|
231
249
|
"_to": "9999-12-31T23:59:59Z",
|
232
250
|
"to": 253402300799000,
|
233
251
|
"dst": false,
|
@@ -21,15 +21,15 @@
|
|
21
21
|
{
|
22
22
|
"_from": "1947-12-31T21:00:00Z",
|
23
23
|
"from": -694321200000,
|
24
|
-
"_to": "1960-12-31T21:15:
|
25
|
-
"to": -
|
24
|
+
"_to": "1960-12-31T21:15:00Z",
|
25
|
+
"to": -284006700000,
|
26
26
|
"dst": false,
|
27
|
-
"offset":
|
27
|
+
"offset": 9900,
|
28
28
|
"name": "BEAUT"
|
29
29
|
},
|
30
30
|
{
|
31
|
-
"_from": "1960-12-31T21:15:
|
32
|
-
"from": -
|
31
|
+
"_from": "1960-12-31T21:15:00Z",
|
32
|
+
"from": -284006700000,
|
33
33
|
"_to": "9999-12-31T23:59:59Z",
|
34
34
|
"to": 253402300799000,
|
35
35
|
"dst": false,
|
@@ -0,0 +1,318 @@
|
|
1
|
+
{"_zone": "Africa/Juba",
|
2
|
+
"zone": [
|
3
|
+
{
|
4
|
+
"_from": "-9999-01-01T00:00:00Z",
|
5
|
+
"from": -377711769600000,
|
6
|
+
"_to": "1930-12-31T21:53:36Z",
|
7
|
+
"to": -1230775584000,
|
8
|
+
"dst": false,
|
9
|
+
"offset": 7584,
|
10
|
+
"name": "LMT"
|
11
|
+
},
|
12
|
+
{
|
13
|
+
"_from": "1930-12-31T21:53:36Z",
|
14
|
+
"from": -1230775584000,
|
15
|
+
"_to": "1970-04-30T22:00:00Z",
|
16
|
+
"to": 10360800000,
|
17
|
+
"dst": false,
|
18
|
+
"offset": 7200,
|
19
|
+
"name": "CAT"
|
20
|
+
},
|
21
|
+
{
|
22
|
+
"_from": "1970-04-30T22:00:00Z",
|
23
|
+
"from": 10360800000,
|
24
|
+
"_to": "1970-10-14T21:00:00Z",
|
25
|
+
"to": 24786000000,
|
26
|
+
"dst": true,
|
27
|
+
"offset": 10800,
|
28
|
+
"name": "CAST"
|
29
|
+
},
|
30
|
+
{
|
31
|
+
"_from": "1970-10-14T21:00:00Z",
|
32
|
+
"from": 24786000000,
|
33
|
+
"_to": "1971-04-29T22:00:00Z",
|
34
|
+
"to": 41810400000,
|
35
|
+
"dst": false,
|
36
|
+
"offset": 7200,
|
37
|
+
"name": "CAT"
|
38
|
+
},
|
39
|
+
{
|
40
|
+
"_from": "1971-04-29T22:00:00Z",
|
41
|
+
"from": 41810400000,
|
42
|
+
"_to": "1971-10-14T21:00:00Z",
|
43
|
+
"to": 56322000000,
|
44
|
+
"dst": true,
|
45
|
+
"offset": 10800,
|
46
|
+
"name": "CAST"
|
47
|
+
},
|
48
|
+
{
|
49
|
+
"_from": "1971-10-14T21:00:00Z",
|
50
|
+
"from": 56322000000,
|
51
|
+
"_to": "1972-04-29T22:00:00Z",
|
52
|
+
"to": 73432800000,
|
53
|
+
"dst": false,
|
54
|
+
"offset": 7200,
|
55
|
+
"name": "CAT"
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"_from": "1972-04-29T22:00:00Z",
|
59
|
+
"from": 73432800000,
|
60
|
+
"_to": "1972-10-14T21:00:00Z",
|
61
|
+
"to": 87944400000,
|
62
|
+
"dst": true,
|
63
|
+
"offset": 10800,
|
64
|
+
"name": "CAST"
|
65
|
+
},
|
66
|
+
{
|
67
|
+
"_from": "1972-10-14T21:00:00Z",
|
68
|
+
"from": 87944400000,
|
69
|
+
"_to": "1973-04-28T22:00:00Z",
|
70
|
+
"to": 104882400000,
|
71
|
+
"dst": false,
|
72
|
+
"offset": 7200,
|
73
|
+
"name": "CAT"
|
74
|
+
},
|
75
|
+
{
|
76
|
+
"_from": "1973-04-28T22:00:00Z",
|
77
|
+
"from": 104882400000,
|
78
|
+
"_to": "1973-10-14T21:00:00Z",
|
79
|
+
"to": 119480400000,
|
80
|
+
"dst": true,
|
81
|
+
"offset": 10800,
|
82
|
+
"name": "CAST"
|
83
|
+
},
|
84
|
+
{
|
85
|
+
"_from": "1973-10-14T21:00:00Z",
|
86
|
+
"from": 119480400000,
|
87
|
+
"_to": "1974-04-27T22:00:00Z",
|
88
|
+
"to": 136332000000,
|
89
|
+
"dst": false,
|
90
|
+
"offset": 7200,
|
91
|
+
"name": "CAT"
|
92
|
+
},
|
93
|
+
{
|
94
|
+
"_from": "1974-04-27T22:00:00Z",
|
95
|
+
"from": 136332000000,
|
96
|
+
"_to": "1974-10-14T21:00:00Z",
|
97
|
+
"to": 151016400000,
|
98
|
+
"dst": true,
|
99
|
+
"offset": 10800,
|
100
|
+
"name": "CAST"
|
101
|
+
},
|
102
|
+
{
|
103
|
+
"_from": "1974-10-14T21:00:00Z",
|
104
|
+
"from": 151016400000,
|
105
|
+
"_to": "1975-04-26T22:00:00Z",
|
106
|
+
"to": 167781600000,
|
107
|
+
"dst": false,
|
108
|
+
"offset": 7200,
|
109
|
+
"name": "CAT"
|
110
|
+
},
|
111
|
+
{
|
112
|
+
"_from": "1975-04-26T22:00:00Z",
|
113
|
+
"from": 167781600000,
|
114
|
+
"_to": "1975-10-14T21:00:00Z",
|
115
|
+
"to": 182552400000,
|
116
|
+
"dst": true,
|
117
|
+
"offset": 10800,
|
118
|
+
"name": "CAST"
|
119
|
+
},
|
120
|
+
{
|
121
|
+
"_from": "1975-10-14T21:00:00Z",
|
122
|
+
"from": 182552400000,
|
123
|
+
"_to": "1976-04-24T22:00:00Z",
|
124
|
+
"to": 199231200000,
|
125
|
+
"dst": false,
|
126
|
+
"offset": 7200,
|
127
|
+
"name": "CAT"
|
128
|
+
},
|
129
|
+
{
|
130
|
+
"_from": "1976-04-24T22:00:00Z",
|
131
|
+
"from": 199231200000,
|
132
|
+
"_to": "1976-10-14T21:00:00Z",
|
133
|
+
"to": 214174800000,
|
134
|
+
"dst": true,
|
135
|
+
"offset": 10800,
|
136
|
+
"name": "CAST"
|
137
|
+
},
|
138
|
+
{
|
139
|
+
"_from": "1976-10-14T21:00:00Z",
|
140
|
+
"from": 214174800000,
|
141
|
+
"_to": "1977-04-23T22:00:00Z",
|
142
|
+
"to": 230680800000,
|
143
|
+
"dst": false,
|
144
|
+
"offset": 7200,
|
145
|
+
"name": "CAT"
|
146
|
+
},
|
147
|
+
{
|
148
|
+
"_from": "1977-04-23T22:00:00Z",
|
149
|
+
"from": 230680800000,
|
150
|
+
"_to": "1977-10-14T21:00:00Z",
|
151
|
+
"to": 245710800000,
|
152
|
+
"dst": true,
|
153
|
+
"offset": 10800,
|
154
|
+
"name": "CAST"
|
155
|
+
},
|
156
|
+
{
|
157
|
+
"_from": "1977-10-14T21:00:00Z",
|
158
|
+
"from": 245710800000,
|
159
|
+
"_to": "1978-04-29T22:00:00Z",
|
160
|
+
"to": 262735200000,
|
161
|
+
"dst": false,
|
162
|
+
"offset": 7200,
|
163
|
+
"name": "CAT"
|
164
|
+
},
|
165
|
+
{
|
166
|
+
"_from": "1978-04-29T22:00:00Z",
|
167
|
+
"from": 262735200000,
|
168
|
+
"_to": "1978-10-14T21:00:00Z",
|
169
|
+
"to": 277246800000,
|
170
|
+
"dst": true,
|
171
|
+
"offset": 10800,
|
172
|
+
"name": "CAST"
|
173
|
+
},
|
174
|
+
{
|
175
|
+
"_from": "1978-10-14T21:00:00Z",
|
176
|
+
"from": 277246800000,
|
177
|
+
"_to": "1979-04-28T22:00:00Z",
|
178
|
+
"to": 294184800000,
|
179
|
+
"dst": false,
|
180
|
+
"offset": 7200,
|
181
|
+
"name": "CAT"
|
182
|
+
},
|
183
|
+
{
|
184
|
+
"_from": "1979-04-28T22:00:00Z",
|
185
|
+
"from": 294184800000,
|
186
|
+
"_to": "1979-10-14T21:00:00Z",
|
187
|
+
"to": 308782800000,
|
188
|
+
"dst": true,
|
189
|
+
"offset": 10800,
|
190
|
+
"name": "CAST"
|
191
|
+
},
|
192
|
+
{
|
193
|
+
"_from": "1979-10-14T21:00:00Z",
|
194
|
+
"from": 308782800000,
|
195
|
+
"_to": "1980-04-26T22:00:00Z",
|
196
|
+
"to": 325634400000,
|
197
|
+
"dst": false,
|
198
|
+
"offset": 7200,
|
199
|
+
"name": "CAT"
|
200
|
+
},
|
201
|
+
{
|
202
|
+
"_from": "1980-04-26T22:00:00Z",
|
203
|
+
"from": 325634400000,
|
204
|
+
"_to": "1980-10-14T21:00:00Z",
|
205
|
+
"to": 340405200000,
|
206
|
+
"dst": true,
|
207
|
+
"offset": 10800,
|
208
|
+
"name": "CAST"
|
209
|
+
},
|
210
|
+
{
|
211
|
+
"_from": "1980-10-14T21:00:00Z",
|
212
|
+
"from": 340405200000,
|
213
|
+
"_to": "1981-04-25T22:00:00Z",
|
214
|
+
"to": 357084000000,
|
215
|
+
"dst": false,
|
216
|
+
"offset": 7200,
|
217
|
+
"name": "CAT"
|
218
|
+
},
|
219
|
+
{
|
220
|
+
"_from": "1981-04-25T22:00:00Z",
|
221
|
+
"from": 357084000000,
|
222
|
+
"_to": "1981-10-14T21:00:00Z",
|
223
|
+
"to": 371941200000,
|
224
|
+
"dst": true,
|
225
|
+
"offset": 10800,
|
226
|
+
"name": "CAST"
|
227
|
+
},
|
228
|
+
{
|
229
|
+
"_from": "1981-10-14T21:00:00Z",
|
230
|
+
"from": 371941200000,
|
231
|
+
"_to": "1982-04-24T22:00:00Z",
|
232
|
+
"to": 388533600000,
|
233
|
+
"dst": false,
|
234
|
+
"offset": 7200,
|
235
|
+
"name": "CAT"
|
236
|
+
},
|
237
|
+
{
|
238
|
+
"_from": "1982-04-24T22:00:00Z",
|
239
|
+
"from": 388533600000,
|
240
|
+
"_to": "1982-10-14T21:00:00Z",
|
241
|
+
"to": 403477200000,
|
242
|
+
"dst": true,
|
243
|
+
"offset": 10800,
|
244
|
+
"name": "CAST"
|
245
|
+
},
|
246
|
+
{
|
247
|
+
"_from": "1982-10-14T21:00:00Z",
|
248
|
+
"from": 403477200000,
|
249
|
+
"_to": "1983-04-23T22:00:00Z",
|
250
|
+
"to": 419983200000,
|
251
|
+
"dst": false,
|
252
|
+
"offset": 7200,
|
253
|
+
"name": "CAT"
|
254
|
+
},
|
255
|
+
{
|
256
|
+
"_from": "1983-04-23T22:00:00Z",
|
257
|
+
"from": 419983200000,
|
258
|
+
"_to": "1983-10-14T21:00:00Z",
|
259
|
+
"to": 435013200000,
|
260
|
+
"dst": true,
|
261
|
+
"offset": 10800,
|
262
|
+
"name": "CAST"
|
263
|
+
},
|
264
|
+
{
|
265
|
+
"_from": "1983-10-14T21:00:00Z",
|
266
|
+
"from": 435013200000,
|
267
|
+
"_to": "1984-04-28T22:00:00Z",
|
268
|
+
"to": 452037600000,
|
269
|
+
"dst": false,
|
270
|
+
"offset": 7200,
|
271
|
+
"name": "CAT"
|
272
|
+
},
|
273
|
+
{
|
274
|
+
"_from": "1984-04-28T22:00:00Z",
|
275
|
+
"from": 452037600000,
|
276
|
+
"_to": "1984-10-14T21:00:00Z",
|
277
|
+
"to": 466635600000,
|
278
|
+
"dst": true,
|
279
|
+
"offset": 10800,
|
280
|
+
"name": "CAST"
|
281
|
+
},
|
282
|
+
{
|
283
|
+
"_from": "1984-10-14T21:00:00Z",
|
284
|
+
"from": 466635600000,
|
285
|
+
"_to": "1985-04-27T22:00:00Z",
|
286
|
+
"to": 483487200000,
|
287
|
+
"dst": false,
|
288
|
+
"offset": 7200,
|
289
|
+
"name": "CAT"
|
290
|
+
},
|
291
|
+
{
|
292
|
+
"_from": "1985-04-27T22:00:00Z",
|
293
|
+
"from": 483487200000,
|
294
|
+
"_to": "1985-10-14T21:00:00Z",
|
295
|
+
"to": 498171600000,
|
296
|
+
"dst": true,
|
297
|
+
"offset": 10800,
|
298
|
+
"name": "CAST"
|
299
|
+
},
|
300
|
+
{
|
301
|
+
"_from": "1985-10-14T21:00:00Z",
|
302
|
+
"from": 498171600000,
|
303
|
+
"_to": "2000-01-15T10:00:00Z",
|
304
|
+
"to": 947930400000,
|
305
|
+
"dst": false,
|
306
|
+
"offset": 7200,
|
307
|
+
"name": "CAT"
|
308
|
+
},
|
309
|
+
{
|
310
|
+
"_from": "2000-01-15T10:00:00Z",
|
311
|
+
"from": 947930400000,
|
312
|
+
"_to": "9999-12-31T23:59:59Z",
|
313
|
+
"to": 253402300799000,
|
314
|
+
"dst": false,
|
315
|
+
"offset": 10800,
|
316
|
+
"name": "EAT"
|
317
|
+
}
|
318
|
+
]}
|
data/data/Africa/Kampala.json
CHANGED
@@ -30,15 +30,15 @@
|
|
30
30
|
{
|
31
31
|
"_from": "1947-12-31T21:30:00Z",
|
32
32
|
"from": -694319400000,
|
33
|
-
"_to": "1956-12-31T21:15:
|
34
|
-
"to": -
|
33
|
+
"_to": "1956-12-31T21:15:00Z",
|
34
|
+
"to": -410237100000,
|
35
35
|
"dst": false,
|
36
|
-
"offset":
|
36
|
+
"offset": 9900,
|
37
37
|
"name": "BEAUT"
|
38
38
|
},
|
39
39
|
{
|
40
|
-
"_from": "1956-12-31T21:15:
|
41
|
-
"from": -
|
40
|
+
"_from": "1956-12-31T21:15:00Z",
|
41
|
+
"from": -410237100000,
|
42
42
|
"_to": "9999-12-31T23:59:59Z",
|
43
43
|
"to": 253402300799000,
|
44
44
|
"dst": false,
|
data/data/Africa/Nairobi.json
CHANGED
@@ -30,15 +30,15 @@
|
|
30
30
|
{
|
31
31
|
"_from": "1939-12-31T21:30:00Z",
|
32
32
|
"from": -946780200000,
|
33
|
-
"_to": "1959-12-31T21:15:
|
34
|
-
"to": -
|
33
|
+
"_to": "1959-12-31T21:15:00Z",
|
34
|
+
"to": -315629100000,
|
35
35
|
"dst": false,
|
36
|
-
"offset":
|
36
|
+
"offset": 9900,
|
37
37
|
"name": "BEAUT"
|
38
38
|
},
|
39
39
|
{
|
40
|
-
"_from": "1959-12-31T21:15:
|
41
|
-
"from": -
|
40
|
+
"_from": "1959-12-31T21:15:00Z",
|
41
|
+
"from": -315629100000,
|
42
42
|
"_to": "9999-12-31T23:59:59Z",
|
43
43
|
"to": 253402300799000,
|
44
44
|
"dst": false,
|
@@ -0,0 +1,75 @@
|
|
1
|
+
{"_zone": "America/Coral_Harbour",
|
2
|
+
"zone": [
|
3
|
+
{
|
4
|
+
"_from": "-9999-01-01T00:00:00Z",
|
5
|
+
"from": -377711769600000,
|
6
|
+
"_to": "1895-01-01T06:06:28Z",
|
7
|
+
"to": -2366733212000,
|
8
|
+
"dst": false,
|
9
|
+
"offset": -21988,
|
10
|
+
"name": "LMT"
|
11
|
+
},
|
12
|
+
{
|
13
|
+
"_from": "1895-01-01T06:06:28Z",
|
14
|
+
"from": -2366733212000,
|
15
|
+
"_to": "1918-04-14T08:00:00Z",
|
16
|
+
"to": -1632067200000,
|
17
|
+
"dst": false,
|
18
|
+
"offset": -21600,
|
19
|
+
"name": "CT"
|
20
|
+
},
|
21
|
+
{
|
22
|
+
"_from": "1918-04-14T08:00:00Z",
|
23
|
+
"from": -1632067200000,
|
24
|
+
"_to": "1918-10-31T07:00:00Z",
|
25
|
+
"to": -1614790800000,
|
26
|
+
"dst": true,
|
27
|
+
"offset": -18000,
|
28
|
+
"name": "CDT"
|
29
|
+
},
|
30
|
+
{
|
31
|
+
"_from": "1918-10-31T07:00:00Z",
|
32
|
+
"from": -1614790800000,
|
33
|
+
"_to": "1940-09-29T06:00:00Z",
|
34
|
+
"to": -923248800000,
|
35
|
+
"dst": false,
|
36
|
+
"offset": -21600,
|
37
|
+
"name": "CST"
|
38
|
+
},
|
39
|
+
{
|
40
|
+
"_from": "1940-09-29T06:00:00Z",
|
41
|
+
"from": -923248800000,
|
42
|
+
"_to": "1942-02-09T08:00:00Z",
|
43
|
+
"to": -880214400000,
|
44
|
+
"dst": true,
|
45
|
+
"offset": -18000,
|
46
|
+
"name": "CDT"
|
47
|
+
},
|
48
|
+
{
|
49
|
+
"_from": "1942-02-09T08:00:00Z",
|
50
|
+
"from": -880214400000,
|
51
|
+
"_to": "1945-08-14T23:00:00Z",
|
52
|
+
"to": -769395600000,
|
53
|
+
"dst": false,
|
54
|
+
"offset": -21600,
|
55
|
+
"name": "CT"
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"_from": "1945-08-14T23:00:00Z",
|
59
|
+
"from": -769395600000,
|
60
|
+
"_to": "1945-09-30T07:00:00Z",
|
61
|
+
"to": -765392400000,
|
62
|
+
"dst": true,
|
63
|
+
"offset": -18000,
|
64
|
+
"name": "CPT"
|
65
|
+
},
|
66
|
+
{
|
67
|
+
"_from": "1945-09-30T07:00:00Z",
|
68
|
+
"from": -765392400000,
|
69
|
+
"_to": "9999-12-31T23:59:59Z",
|
70
|
+
"to": 253402300799000,
|
71
|
+
"dst": false,
|
72
|
+
"offset": -21600,
|
73
|
+
"name": "CST"
|
74
|
+
}
|
75
|
+
]}
|