]> jfr.im git - irc/quakenet/newserv.git/blame - geoip/libGeoIP/timeZone.c
Merge pull request #1 from meeb/meeb
[irc/quakenet/newserv.git] / geoip / libGeoIP / timeZone.c
CommitLineData
69793602
CP
1#include <string.h>
2const char* GeoIP_time_zone_by_country_and_region(const char * country,const char * region) {
3 const char* timezone = NULL;
4 if (country == NULL) {
5 return NULL;
6 }
7 if (region == NULL) {
8 region = "";
9 }
10 if ( strcmp (country, "AD") == 0 ) {
11 timezone = "Europe/Andorra";
12 }
13 else if ( strcmp (country, "AE") == 0 ) {
14 timezone = "Asia/Dubai";
15 }
16 else if ( strcmp (country, "AF") == 0 ) {
17 timezone = "Asia/Kabul";
18 }
19 else if ( strcmp (country, "AG") == 0 ) {
20 timezone = "America/Antigua";
21 }
22 else if ( strcmp (country, "AI") == 0 ) {
23 timezone = "America/Anguilla";
24 }
25 else if ( strcmp (country, "AL") == 0 ) {
26 timezone = "Europe/Tirane";
27 }
28 else if ( strcmp (country, "AM") == 0 ) {
29 timezone = "Asia/Yerevan";
30 }
31 else if ( strcmp (country, "AN") == 0 ) {
32 timezone = "America/Curacao";
33 }
34 else if ( strcmp (country, "AO") == 0 ) {
35 timezone = "Africa/Luanda";
36 }
37 else if ( strcmp (country, "AR") == 0 ) {
38 timezone = "America/Mendoza";
39 }
40 else if ( strcmp (country, "AS") == 0 ) {
41 timezone = "US/Samoa";
42 }
43 else if ( strcmp (country, "AT") == 0 ) {
44 timezone = "Europe/Vienna";
45 }
46 else if ( strcmp (country, "AU") == 0 ) {
47 timezone = "Australia/Queensland";
48 }
49 else if ( strcmp (country, "AW") == 0 ) {
50 timezone = "America/Aruba";
51 }
52 else if ( strcmp (country, "AX") == 0 ) {
53 timezone = "Europe/Mariehamn";
54 }
55 else if ( strcmp (country, "AZ") == 0 ) {
56 timezone = "Asia/Baku";
57 }
58 else if ( strcmp (country, "BA") == 0 ) {
59 timezone = "Europe/Sarajevo";
60 }
61 else if ( strcmp (country, "BB") == 0 ) {
62 timezone = "America/Barbados";
63 }
64 else if ( strcmp (country, "BD") == 0 ) {
65 timezone = "Asia/Dhaka";
66 }
67 else if ( strcmp (country, "BE") == 0 ) {
68 timezone = "Europe/Brussels";
69 }
70 else if ( strcmp (country, "BF") == 0 ) {
71 timezone = "Africa/Ouagadougou";
72 }
73 else if ( strcmp (country, "BG") == 0 ) {
74 timezone = "Europe/Sofia";
75 }
76 else if ( strcmp (country, "BH") == 0 ) {
77 timezone = "Asia/Bahrain";
78 }
79 else if ( strcmp (country, "BI") == 0 ) {
80 timezone = "Africa/Bujumbura";
81 }
82 else if ( strcmp (country, "BJ") == 0 ) {
83 timezone = "Africa/Porto-Novo";
84 }
85 else if ( strcmp (country, "BL") == 0 ) {
86 timezone = "America/St_Barthelemy";
87 }
88 else if ( strcmp (country, "BM") == 0 ) {
89 timezone = "Atlantic/Bermuda";
90 }
91 else if ( strcmp (country, "BN") == 0 ) {
92 timezone = "Asia/Brunei";
93 }
94 else if ( strcmp (country, "BO") == 0 ) {
95 timezone = "America/La_Paz";
96 }
97 else if ( strcmp (country, "BR") == 0 ) {
98 timezone = "Brazil/Acre";
99 }
100 else if ( strcmp (country, "BS") == 0 ) {
101 timezone = "America/Nassau";
102 }
103 else if ( strcmp (country, "BT") == 0 ) {
104 timezone = "Asia/Thimphu";
105 }
106 else if ( strcmp (country, "BW") == 0 ) {
107 timezone = "Africa/Gaborone";
108 }
109 else if ( strcmp (country, "BY") == 0 ) {
110 timezone = "Europe/Minsk";
111 }
112 else if ( strcmp (country, "BZ") == 0 ) {
113 timezone = "America/Belize";
114 }
115 else if ( strcmp (country, "CA") == 0 ) {
116 if ( strcmp (region, "AB") == 0 ) {
117 timezone = "America/Yellowknife";
118 }
119 else if ( strcmp (region, "BC") == 0 ) {
120 timezone = "America/Vancouver";
121 }
122 else if ( strcmp (region, "MB") == 0 ) {
123 timezone = "America/Rainy_River";
124 }
125 else if ( strcmp (region, "NB") == 0 ) {
126 timezone = "America/Halifax";
127 }
128 else if ( strcmp (region, "NF") == 0 ) {
129 timezone = "America/Winnipeg";
130 }
131 else if ( strcmp (region, "NS") == 0 ) {
132 timezone = "America/Montreal";
133 }
134 else if ( strcmp (region, "NT") == 0 ) {
135 timezone = "America/St_Johns";
136 }
137 else if ( strcmp (region, "NU") == 0 ) {
138 timezone = "America/Rankin_Inlet";
139 }
140 else if ( strcmp (region, "ON") == 0 ) {
141 timezone = "America/Halifax";
142 }
143 else if ( strcmp (region, "PE") == 0 ) {
144 timezone = "America/Regina";
145 }
146 else if ( strcmp (region, "QC") == 0 ) {
147 timezone = "America/Halifax";
148 }
149 else if ( strcmp (region, "SK") == 0 ) {
150 timezone = "America/Edmonton";
151 }
152 }
153 else if ( strcmp (country, "CC") == 0 ) {
154 timezone = "Indian/Cocos";
155 }
156 else if ( strcmp (country, "CF") == 0 ) {
157 timezone = "Africa/Bangui";
158 }
159 else if ( strcmp (country, "CG") == 0 ) {
160 timezone = "Africa/Brazzaville";
161 }
162 else if ( strcmp (country, "CH") == 0 ) {
163 timezone = "Europe/Zurich";
164 }
165 else if ( strcmp (country, "CI") == 0 ) {
166 timezone = "Africa/Abidjan";
167 }
168 else if ( strcmp (country, "CK") == 0 ) {
169 timezone = "Pacific/Rarotonga";
170 }
171 else if ( strcmp (country, "CL") == 0 ) {
172 timezone = "Chile/Continental";
173 }
174 else if ( strcmp (country, "CM") == 0 ) {
175 timezone = "Africa/Lagos";
176 }
177 else if ( strcmp (country, "CN") == 0 ) {
178 timezone = "Asia/Chongqing";
179 }
180 else if ( strcmp (country, "CO") == 0 ) {
181 timezone = "America/Bogota";
182 }
183 else if ( strcmp (country, "CR") == 0 ) {
184 timezone = "America/Costa_Rica";
185 }
186 else if ( strcmp (country, "CU") == 0 ) {
187 timezone = "America/Havana";
188 }
189 else if ( strcmp (country, "CV") == 0 ) {
190 timezone = "Atlantic/Cape_Verde";
191 }
192 else if ( strcmp (country, "CX") == 0 ) {
193 timezone = "Indian/Christmas";
194 }
195 else if ( strcmp (country, "CY") == 0 ) {
196 timezone = "Asia/Nicosia";
197 }
198 else if ( strcmp (country, "CZ") == 0 ) {
199 timezone = "Europe/Prague";
200 }
201 else if ( strcmp (country, "DE") == 0 ) {
202 timezone = "Europe/Berlin";
203 }
204 else if ( strcmp (country, "DJ") == 0 ) {
205 timezone = "Africa/Djibouti";
206 }
207 else if ( strcmp (country, "DK") == 0 ) {
208 timezone = "Europe/Copenhagen";
209 }
210 else if ( strcmp (country, "DM") == 0 ) {
211 timezone = "America/Dominica";
212 }
213 else if ( strcmp (country, "DO") == 0 ) {
214 timezone = "America/Santo_Domingo";
215 }
216 else if ( strcmp (country, "DZ") == 0 ) {
217 timezone = "Africa/Algiers";
218 }
219 else if ( strcmp (country, "EC") == 0 ) {
220 timezone = "America/Guayaquil";
221 }
222 else if ( strcmp (country, "EE") == 0 ) {
223 timezone = "Europe/Tallinn";
224 }
225 else if ( strcmp (country, "EG") == 0 ) {
226 timezone = "Africa/Cairo";
227 }
228 else if ( strcmp (country, "EH") == 0 ) {
229 timezone = "Africa/El_Aaiun";
230 }
231 else if ( strcmp (country, "ER") == 0 ) {
232 timezone = "Africa/Asmera";
233 }
234 else if ( strcmp (country, "ES") == 0 ) {
235 timezone = "Europe/Madrid";
236 }
237 else if ( strcmp (country, "ET") == 0 ) {
238 timezone = "Africa/Addis_Ababa";
239 }
240 else if ( strcmp (country, "FI") == 0 ) {
241 timezone = "Europe/Helsinki";
242 }
243 else if ( strcmp (country, "FJ") == 0 ) {
244 timezone = "Pacific/Fiji";
245 }
246 else if ( strcmp (country, "FK") == 0 ) {
247 timezone = "Atlantic/Stanley";
248 }
249 else if ( strcmp (country, "FO") == 0 ) {
250 timezone = "Atlantic/Faeroe";
251 }
252 else if ( strcmp (country, "FR") == 0 ) {
253 timezone = "Europe/Paris";
254 }
255 else if ( strcmp (country, "FX") == 0 ) {
256 timezone = "Europe/Paris";
257 }
258 else if ( strcmp (country, "GA") == 0 ) {
259 timezone = "Africa/Libreville";
260 }
261 else if ( strcmp (country, "GB") == 0 ) {
262 timezone = "Europe/London";
263 }
264 else if ( strcmp (country, "GD") == 0 ) {
265 timezone = "America/Grenada";
266 }
267 else if ( strcmp (country, "GE") == 0 ) {
268 timezone = "Asia/Tbilisi";
269 }
270 else if ( strcmp (country, "GF") == 0 ) {
271 timezone = "America/Cayenne";
272 }
273 else if ( strcmp (country, "GG") == 0 ) {
274 timezone = "Europe/Guernsey";
275 }
276 else if ( strcmp (country, "GH") == 0 ) {
277 timezone = "Africa/Accra";
278 }
279 else if ( strcmp (country, "GI") == 0 ) {
280 timezone = "Europe/Gibraltar";
281 }
282 else if ( strcmp (country, "GL") == 0 ) {
283 timezone = "America/Godthab";
284 }
285 else if ( strcmp (country, "GM") == 0 ) {
286 timezone = "Africa/Banjul";
287 }
288 else if ( strcmp (country, "GN") == 0 ) {
289 timezone = "Africa/Conakry";
290 }
291 else if ( strcmp (country, "GP") == 0 ) {
292 timezone = "America/Guadeloupe";
293 }
294 else if ( strcmp (country, "GQ") == 0 ) {
295 timezone = "Africa/Malabo";
296 }
297 else if ( strcmp (country, "GR") == 0 ) {
298 timezone = "Europe/Athens";
299 }
300 else if ( strcmp (country, "GS") == 0 ) {
301 timezone = "Atlantic/South_Georgia";
302 }
303 else if ( strcmp (country, "GT") == 0 ) {
304 timezone = "America/Guatemala";
305 }
306 else if ( strcmp (country, "GU") == 0 ) {
307 timezone = "Pacific/Guam";
308 }
309 else if ( strcmp (country, "GW") == 0 ) {
310 timezone = "Africa/Bissau";
311 }
312 else if ( strcmp (country, "GY") == 0 ) {
313 timezone = "America/Guyana";
314 }
315 else if ( strcmp (country, "HK") == 0 ) {
316 timezone = "Asia/Hong_Kong";
317 }
318 else if ( strcmp (country, "HN") == 0 ) {
319 timezone = "America/Tegucigalpa";
320 }
321 else if ( strcmp (country, "HR") == 0 ) {
322 timezone = "Europe/Zagreb";
323 }
324 else if ( strcmp (country, "HT") == 0 ) {
325 timezone = "America/Port-au-Prince";
326 }
327 else if ( strcmp (country, "HU") == 0 ) {
328 timezone = "Europe/Budapest";
329 }
330 else if ( strcmp (country, "ID") == 0 ) {
331 timezone = "Asia/Jakarta";
332 }
333 else if ( strcmp (country, "IE") == 0 ) {
334 timezone = "Europe/Dublin";
335 }
336 else if ( strcmp (country, "IL") == 0 ) {
337 timezone = "Asia/Jerusalem";
338 }
339 else if ( strcmp (country, "IM") == 0 ) {
340 timezone = "Europe/Isle_of_Man";
341 }
342 else if ( strcmp (country, "IN") == 0 ) {
343 timezone = "Asia/Calcutta";
344 }
345 else if ( strcmp (country, "IO") == 0 ) {
346 timezone = "Indian/Chagos";
347 }
348 else if ( strcmp (country, "IQ") == 0 ) {
349 timezone = "Asia/Baghdad";
350 }
351 else if ( strcmp (country, "IR") == 0 ) {
352 timezone = "Asia/Tehran";
353 }
354 else if ( strcmp (country, "IS") == 0 ) {
355 timezone = "Atlantic/Reykjavik";
356 }
357 else if ( strcmp (country, "IT") == 0 ) {
358 timezone = "Europe/Rome";
359 }
360 else if ( strcmp (country, "JE") == 0 ) {
361 timezone = "Europe/Jersey";
362 }
363 else if ( strcmp (country, "JM") == 0 ) {
364 timezone = "America/Jamaica";
365 }
366 else if ( strcmp (country, "JO") == 0 ) {
367 timezone = "Asia/Amman";
368 }
369 else if ( strcmp (country, "JP") == 0 ) {
370 timezone = "Asia/Tokyo";
371 }
372 else if ( strcmp (country, "KE") == 0 ) {
373 timezone = "Africa/Nairobi";
374 }
375 else if ( strcmp (country, "KG") == 0 ) {
376 timezone = "Asia/Bishkek";
377 }
378 else if ( strcmp (country, "KH") == 0 ) {
379 timezone = "Asia/Phnom_Penh";
380 }
381 else if ( strcmp (country, "KI") == 0 ) {
382 timezone = "Pacific/Tarawa";
383 }
384 else if ( strcmp (country, "KM") == 0 ) {
385 timezone = "Indian/Comoro";
386 }
387 else if ( strcmp (country, "KN") == 0 ) {
388 timezone = "America/St_Kitts";
389 }
390 else if ( strcmp (country, "KP") == 0 ) {
391 timezone = "Asia/Pyongyang";
392 }
393 else if ( strcmp (country, "KR") == 0 ) {
394 timezone = "Asia/Seoul";
395 }
396 else if ( strcmp (country, "KW") == 0 ) {
397 timezone = "Asia/Kuwait";
398 }
399 else if ( strcmp (country, "KY") == 0 ) {
400 timezone = "America/Cayman";
401 }
402 else if ( strcmp (country, "KZ") == 0 ) {
403 timezone = "Asia/Almaty";
404 }
405 else if ( strcmp (country, "LA") == 0 ) {
406 timezone = "Asia/Vientiane";
407 }
408 else if ( strcmp (country, "LB") == 0 ) {
409 timezone = "Asia/Beirut";
410 }
411 else if ( strcmp (country, "LC") == 0 ) {
412 timezone = "America/St_Lucia";
413 }
414 else if ( strcmp (country, "LI") == 0 ) {
415 timezone = "Europe/Vaduz";
416 }
417 else if ( strcmp (country, "LK") == 0 ) {
418 timezone = "Asia/Colombo";
419 }
420 else if ( strcmp (country, "LR") == 0 ) {
421 timezone = "Africa/Monrovia";
422 }
423 else if ( strcmp (country, "LS") == 0 ) {
424 timezone = "Africa/Maseru";
425 }
426 else if ( strcmp (country, "LT") == 0 ) {
427 timezone = "Europe/Vilnius";
428 }
429 else if ( strcmp (country, "LU") == 0 ) {
430 timezone = "Europe/Luxembourg";
431 }
432 else if ( strcmp (country, "LV") == 0 ) {
433 timezone = "Europe/Riga";
434 }
435 else if ( strcmp (country, "LY") == 0 ) {
436 timezone = "Africa/Tripoli";
437 }
438 else if ( strcmp (country, "MA") == 0 ) {
439 timezone = "Africa/Casablanca";
440 }
441 else if ( strcmp (country, "MC") == 0 ) {
442 timezone = "Europe/Monaco";
443 }
444 else if ( strcmp (country, "MD") == 0 ) {
445 timezone = "Europe/Chisinau";
446 }
447 else if ( strcmp (country, "ME") == 0 ) {
448 timezone = "Europe/Podgorica";
449 }
450 else if ( strcmp (country, "MF") == 0 ) {
451 timezone = "America/Marigot";
452 }
453 else if ( strcmp (country, "MG") == 0 ) {
454 timezone = "Indian/Antananarivo";
455 }
456 else if ( strcmp (country, "MK") == 0 ) {
457 timezone = "Europe/Skopje";
458 }
459 else if ( strcmp (country, "ML") == 0 ) {
460 timezone = "Africa/Bamako";
461 }
462 else if ( strcmp (country, "MM") == 0 ) {
463 timezone = "Asia/Rangoon";
464 }
465 else if ( strcmp (country, "MN") == 0 ) {
466 timezone = "Asia/Choibalsan";
467 }
468 else if ( strcmp (country, "MO") == 0 ) {
469 timezone = "Asia/Macao";
470 }
471 else if ( strcmp (country, "MP") == 0 ) {
472 timezone = "Pacific/Saipan";
473 }
474 else if ( strcmp (country, "MQ") == 0 ) {
475 timezone = "America/Martinique";
476 }
477 else if ( strcmp (country, "MR") == 0 ) {
478 timezone = "Africa/Nouakchott";
479 }
480 else if ( strcmp (country, "MS") == 0 ) {
481 timezone = "America/Montserrat";
482 }
483 else if ( strcmp (country, "MT") == 0 ) {
484 timezone = "Europe/Malta";
485 }
486 else if ( strcmp (country, "MU") == 0 ) {
487 timezone = "Indian/Mauritius";
488 }
489 else if ( strcmp (country, "MV") == 0 ) {
490 timezone = "Indian/Maldives";
491 }
492 else if ( strcmp (country, "MW") == 0 ) {
493 timezone = "Africa/Blantyre";
494 }
495 else if ( strcmp (country, "MX") == 0 ) {
496 timezone = "America/Chihuahua";
497 }
498 else if ( strcmp (country, "MZ") == 0 ) {
499 timezone = "Africa/Maputo";
500 }
501 else if ( strcmp (country, "NA") == 0 ) {
502 timezone = "Africa/Windhoek";
503 }
504 else if ( strcmp (country, "NC") == 0 ) {
505 timezone = "Pacific/Noumea";
506 }
507 else if ( strcmp (country, "NE") == 0 ) {
508 timezone = "Africa/Niamey";
509 }
510 else if ( strcmp (country, "NF") == 0 ) {
511 timezone = "Pacific/Norfolk";
512 }
513 else if ( strcmp (country, "NG") == 0 ) {
514 timezone = "Africa/Lagos";
515 }
516 else if ( strcmp (country, "NI") == 0 ) {
517 timezone = "America/Managua";
518 }
519 else if ( strcmp (country, "NL") == 0 ) {
520 timezone = "Europe/Amsterdam";
521 }
522 else if ( strcmp (country, "NO") == 0 ) {
523 timezone = "Europe/Oslo";
524 }
525 else if ( strcmp (country, "NP") == 0 ) {
526 timezone = "Asia/Katmandu";
527 }
528 else if ( strcmp (country, "NR") == 0 ) {
529 timezone = "Pacific/Nauru";
530 }
531 else if ( strcmp (country, "NU") == 0 ) {
532 timezone = "Pacific/Niue";
533 }
534 else if ( strcmp (country, "NZ") == 0 ) {
535 timezone = "Pacific/Auckland";
536 }
537 else if ( strcmp (country, "OM") == 0 ) {
538 timezone = "Asia/Muscat";
539 }
540 else if ( strcmp (country, "PA") == 0 ) {
541 timezone = "America/Panama";
542 }
543 else if ( strcmp (country, "PE") == 0 ) {
544 timezone = "America/Lima";
545 }
546 else if ( strcmp (country, "PG") == 0 ) {
547 timezone = "Pacific/Port_Moresby";
548 }
549 else if ( strcmp (country, "PH") == 0 ) {
550 timezone = "Asia/Manila";
551 }
552 else if ( strcmp (country, "PK") == 0 ) {
553 timezone = "Asia/Karachi";
554 }
555 else if ( strcmp (country, "PL") == 0 ) {
556 timezone = "Europe/Warsaw";
557 }
558 else if ( strcmp (country, "PM") == 0 ) {
559 timezone = "America/Miquelon";
560 }
561 else if ( strcmp (country, "PN") == 0 ) {
562 timezone = "Pacific/Pitcairn";
563 }
564 else if ( strcmp (country, "PR") == 0 ) {
565 timezone = "America/Puerto_Rico";
566 }
567 else if ( strcmp (country, "PS") == 0 ) {
568 timezone = "Asia/Gaza";
569 }
570 else if ( strcmp (country, "PT") == 0 ) {
571 timezone = "Atlantic/Azores";
572 }
573 else if ( strcmp (country, "PW") == 0 ) {
574 timezone = "Pacific/Palau";
575 }
576 else if ( strcmp (country, "PY") == 0 ) {
577 timezone = "America/Asuncion";
578 }
579 else if ( strcmp (country, "QA") == 0 ) {
580 timezone = "Asia/Qatar";
581 }
582 else if ( strcmp (country, "RE") == 0 ) {
583 timezone = "Indian/Reunion";
584 }
585 else if ( strcmp (country, "RO") == 0 ) {
586 timezone = "Europe/Bucharest";
587 }
588 else if ( strcmp (country, "RS") == 0 ) {
589 timezone = "Europe/Belgrade";
590 }
591 else if ( strcmp (country, "RU") == 0 ) {
592 timezone = "Europe/Moscow";
593 }
594 else if ( strcmp (country, "RW") == 0 ) {
595 timezone = "Africa/Kigali";
596 }
597 else if ( strcmp (country, "SA") == 0 ) {
598 timezone = "Asia/Riyadh";
599 }
600 else if ( strcmp (country, "SB") == 0 ) {
601 timezone = "Pacific/Guadalcanal";
602 }
603 else if ( strcmp (country, "SC") == 0 ) {
604 timezone = "Indian/Mahe";
605 }
606 else if ( strcmp (country, "SD") == 0 ) {
607 timezone = "Africa/Khartoum";
608 }
609 else if ( strcmp (country, "SE") == 0 ) {
610 timezone = "Europe/Stockholm";
611 }
612 else if ( strcmp (country, "SG") == 0 ) {
613 timezone = "Asia/Singapore";
614 }
615 else if ( strcmp (country, "SH") == 0 ) {
616 timezone = "Atlantic/St_Helena";
617 }
618 else if ( strcmp (country, "SI") == 0 ) {
619 timezone = "Europe/Ljubljana";
620 }
621 else if ( strcmp (country, "SJ") == 0 ) {
622 timezone = "Arctic/Longyearbyen";
623 }
624 else if ( strcmp (country, "SK") == 0 ) {
625 timezone = "Europe/Bratislava";
626 }
627 else if ( strcmp (country, "SL") == 0 ) {
628 timezone = "Africa/Freetown";
629 }
630 else if ( strcmp (country, "SM") == 0 ) {
631 timezone = "Europe/San_Marino";
632 }
633 else if ( strcmp (country, "SN") == 0 ) {
634 timezone = "Africa/Dakar";
635 }
636 else if ( strcmp (country, "SO") == 0 ) {
637 timezone = "Africa/Mogadishu";
638 }
639 else if ( strcmp (country, "SR") == 0 ) {
640 timezone = "America/Paramaribo";
641 }
642 else if ( strcmp (country, "ST") == 0 ) {
643 timezone = "Africa/Sao_Tome";
644 }
645 else if ( strcmp (country, "SV") == 0 ) {
646 timezone = "America/El_Salvador";
647 }
648 else if ( strcmp (country, "SY") == 0 ) {
649 timezone = "Asia/Damascus";
650 }
651 else if ( strcmp (country, "SZ") == 0 ) {
652 timezone = "Africa/Mbabane";
653 }
654 else if ( strcmp (country, "TC") == 0 ) {
655 timezone = "America/Grand_Turk";
656 }
657 else if ( strcmp (country, "TD") == 0 ) {
658 timezone = "Africa/Ndjamena";
659 }
660 else if ( strcmp (country, "TF") == 0 ) {
661 timezone = "Indian/Kerguelen";
662 }
663 else if ( strcmp (country, "TG") == 0 ) {
664 timezone = "Africa/Lome";
665 }
666 else if ( strcmp (country, "TH") == 0 ) {
667 timezone = "Asia/Bangkok";
668 }
669 else if ( strcmp (country, "TJ") == 0 ) {
670 timezone = "Asia/Dushanbe";
671 }
672 else if ( strcmp (country, "TK") == 0 ) {
673 timezone = "Pacific/Fakaofo";
674 }
675 else if ( strcmp (country, "TL") == 0 ) {
676 timezone = "Asia/Jakarta";
677 }
678 else if ( strcmp (country, "TM") == 0 ) {
679 timezone = "Asia/Ashgabat";
680 }
681 else if ( strcmp (country, "TN") == 0 ) {
682 timezone = "Africa/Tunis";
683 }
684 else if ( strcmp (country, "TO") == 0 ) {
685 timezone = "Pacific/Tongatapu";
686 }
687 else if ( strcmp (country, "TR") == 0 ) {
688 timezone = "Asia/Istanbul";
689 }
690 else if ( strcmp (country, "TT") == 0 ) {
691 timezone = "America/Port_of_Spain";
692 }
693 else if ( strcmp (country, "TV") == 0 ) {
694 timezone = "Pacific/Funafuti";
695 }
696 else if ( strcmp (country, "TW") == 0 ) {
697 timezone = "Asia/Taipei";
698 }
699 else if ( strcmp (country, "TZ") == 0 ) {
700 timezone = "Africa/Dar_es_Salaam";
701 }
702 else if ( strcmp (country, "UA") == 0 ) {
703 timezone = "Europe/Kiev";
704 }
705 else if ( strcmp (country, "UG") == 0 ) {
706 timezone = "Africa/Kampala";
707 }
708 else if ( strcmp (country, "US") == 0 ) {
709 if ( strcmp (region, "AK") == 0 ) {
710 timezone = "America/New_York";
711 }
712 else if ( strcmp (region, "AL") == 0 ) {
713 timezone = "America/Chicago";
714 }
715 else if ( strcmp (region, "AR") == 0 ) {
716 timezone = "America/New_York";
717 }
718 else if ( strcmp (region, "AZ") == 0 ) {
719 timezone = "America/Chicago";
720 }
721 else if ( strcmp (region, "CA") == 0 ) {
722 timezone = "America/Chicago";
723 }
724 else if ( strcmp (region, "CO") == 0 ) {
725 timezone = "America/New_York";
726 }
727 else if ( strcmp (region, "CT") == 0 ) {
728 timezone = "America/New_York";
729 }
730 else if ( strcmp (region, "DC") == 0 ) {
731 timezone = "Pacific/Honolulu";
732 }
733 else if ( strcmp (region, "DE") == 0 ) {
734 timezone = "America/New_York";
735 }
736 else if ( strcmp (region, "FL") == 0 ) {
737 timezone = "America/Chicago";
738 }
739 else if ( strcmp (region, "GA") == 0 ) {
740 timezone = "America/Chicago";
741 }
742 else if ( strcmp (region, "HI") == 0 ) {
743 timezone = "America/New_York";
744 }
745 else if ( strcmp (region, "IA") == 0 ) {
746 timezone = "America/New_York";
747 }
748 else if ( strcmp (region, "ID") == 0 ) {
749 timezone = "America/New_York";
750 }
751 else if ( strcmp (region, "IL") == 0 ) {
752 timezone = "America/Chicago";
753 }
754 else if ( strcmp (region, "IN") == 0 ) {
755 timezone = "America/Denver";
756 }
757 else if ( strcmp (region, "KS") == 0 ) {
758 timezone = "America/Chicago";
759 }
760 else if ( strcmp (region, "KY") == 0 ) {
761 timezone = "America/New_York";
762 }
763 else if ( strcmp (region, "LA") == 0 ) {
764 timezone = "America/Phoenix";
765 }
766 else if ( strcmp (region, "MA") == 0 ) {
767 timezone = "America/New_York";
768 }
769 else if ( strcmp (region, "MD") == 0 ) {
770 timezone = "America/Denver";
771 }
772 else if ( strcmp (region, "ME") == 0 ) {
773 timezone = "America/Chicago";
774 }
775 else if ( strcmp (region, "MI") == 0 ) {
776 timezone = "America/Chicago";
777 }
778 else if ( strcmp (region, "MN") == 0 ) {
779 timezone = "America/New_York";
780 }
781 else if ( strcmp (region, "MO") == 0 ) {
782 timezone = "America/New_York";
783 }
784 else if ( strcmp (region, "MS") == 0 ) {
785 timezone = "America/Los_Angeles";
786 }
787 else if ( strcmp (region, "MT") == 0 ) {
788 timezone = "America/Los_Angeles";
789 }
790 else if ( strcmp (region, "NC") == 0 ) {
791 timezone = "America/Los_Angeles";
792 }
793 else if ( strcmp (region, "ND") == 0 ) {
794 timezone = "America/Denver";
795 }
796 else if ( strcmp (region, "NE") == 0 ) {
797 timezone = "America/New_York";
798 }
799 else if ( strcmp (region, "NH") == 0 ) {
800 timezone = "America/Chicago";
801 }
802 else if ( strcmp (region, "NJ") == 0 ) {
803 timezone = "America/Denver";
804 }
805 else if ( strcmp (region, "NM") == 0 ) {
806 timezone = "America/Chicago";
807 }
808 else if ( strcmp (region, "NV") == 0 ) {
809 timezone = "America/Chicago";
810 }
811 else if ( strcmp (region, "NY") == 0 ) {
812 timezone = "America/Chicago";
813 }
814 else if ( strcmp (region, "OH") == 0 ) {
815 timezone = "America/New_York";
816 }
817 else if ( strcmp (region, "OK") == 0 ) {
818 timezone = "America/New_York";
819 }
820 else if ( strcmp (region, "OR") == 0 ) {
821 timezone = "America/New_York";
822 }
823 else if ( strcmp (region, "PA") == 0 ) {
824 timezone = "America/Los_Angeles";
825 }
826 else if ( strcmp (region, "RI") == 0 ) {
827 timezone = "America/Chicago";
828 }
829 else if ( strcmp (region, "SC") == 0 ) {
830 timezone = "America/New_York";
831 }
832 else if ( strcmp (region, "SD") == 0 ) {
833 timezone = "America/Denver";
834 }
835 else if ( strcmp (region, "TN") == 0 ) {
836 timezone = "America/New_York";
837 }
838 else if ( strcmp (region, "TX") == 0 ) {
839 timezone = "America/New_York";
840 }
841 else if ( strcmp (region, "UT") == 0 ) {
842 timezone = "America/Indianapolis";
843 }
844 else if ( strcmp (region, "VA") == 0 ) {
845 timezone = "America/Chicago";
846 }
847 else if ( strcmp (region, "VT") == 0 ) {
848 timezone = "America/New_York";
849 }
850 else if ( strcmp (region, "WA") == 0 ) {
851 timezone = "America/Chicago";
852 }
853 else if ( strcmp (region, "WI") == 0 ) {
854 timezone = "America/Anchorage";
855 }
856 else if ( strcmp (region, "WV") == 0 ) {
857 timezone = "America/New_York";
858 }
859 }
860 else if ( strcmp (country, "UY") == 0 ) {
861 timezone = "America/Montevideo";
862 }
863 else if ( strcmp (country, "UZ") == 0 ) {
864 timezone = "Asia/Tashkent";
865 }
866 else if ( strcmp (country, "VA") == 0 ) {
867 timezone = "Europe/Vatican";
868 }
869 else if ( strcmp (country, "VC") == 0 ) {
870 timezone = "America/St_Vincent";
871 }
872 else if ( strcmp (country, "VE") == 0 ) {
873 timezone = "America/Caracas";
874 }
875 else if ( strcmp (country, "VG") == 0 ) {
876 timezone = "America/Tortola";
877 }
878 else if ( strcmp (country, "VI") == 0 ) {
879 timezone = "America/St_Thomas";
880 }
881 else if ( strcmp (country, "VN") == 0 ) {
882 timezone = "Asia/Phnom_Penh";
883 }
884 else if ( strcmp (country, "VU") == 0 ) {
885 timezone = "Pacific/Efate";
886 }
887 else if ( strcmp (country, "WF") == 0 ) {
888 timezone = "Pacific/Wallis";
889 }
890 else if ( strcmp (country, "WS") == 0 ) {
891 timezone = "Pacific/Samoa";
892 }
893 else if ( strcmp (country, "YE") == 0 ) {
894 timezone = "Asia/Aden";
895 }
896 else if ( strcmp (country, "YT") == 0 ) {
897 timezone = "Indian/Mayotte";
898 }
899 else if ( strcmp (country, "YU") == 0 ) {
900 timezone = "Europe/Belgrade";
901 }
902 else if ( strcmp (country, "ZA") == 0 ) {
903 timezone = "Africa/Johannesburg";
904 }
905 else if ( strcmp (country, "ZM") == 0 ) {
906 timezone = "Africa/Lusaka";
907 }
908 else if ( strcmp (country, "ZW") == 0 ) {
909 timezone = "Africa/Harare";
910 }
911 return timezone;
912}