Created
July 14, 2017 12:43
-
-
Save matthewhartstonge/891a8682e09fe6b58833f63ec853e202 to your computer and use it in GitHub Desktop.
timezones as protobuf/gRPC enums
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax = "proto3"; | |
package tz; | |
enum TimeZone { | |
Utc0000 = 0; // (UTC+-0:00) Coordinated Universal Time. | |
UtcMinus1200InternationalDateLineWest = 1; // (UTC-12:00) International Date Line West | |
UtcMinus1100MidwayIsland_Samoa = 2; // (UTC-11:00) Midway Island, Samoa | |
UtcMinus1000Hawaii = 3; // (UTC-10:00) Hawaii | |
UtcMinus0900Alaska = 4; // (UTC-09:00) Alaska | |
UtcMinus0800PacificTime = 5; // (UTC-08:00) Pacific Time (US & Canada) | |
UtcMinus0800Tijuana_BajaCalifornia = 6; // (UTC-08:00) Tijuana, Baja California | |
UtcMinus0700Arizona = 7; // (UTC-07:00) Arizona | |
UtcMinus0700MountainTime = 8; // (UTC-07:00) Mountain Time (US & Canada) | |
UtcMinus0700Chihuahua_Lapaz_Mazatlan = 9; // (UTC-07:00) Chihuahua, La Paz, Mazatlan | |
UtcMinus0600CentralAmerica = 10; // (UTC-06:00) Central America | |
UtcMinus0600CentralTime = 11; // (UTC-06:00) Central Time (US & Canada) | |
UtcMinus0600Guadalajara_MexicoCity = 12; // (UTC-06:00) Guadalajara, Mexico City, Monterrey | |
UtcMinus0600Saskatchewan = 13; // (UTC-06:00) Saskatchewan | |
UtcMinus0500Bogota_Lima_Quito_Riobranco = 14; // (UTC-05:00) Bogota, Lima, Quito, Rio Branco | |
UtcMinus0500EasternTime = 15; // (UTC-05:00) Eastern Time (US & Canada) | |
UtcMinus0500Indiana = 16; // (UTC-05:00) Indiana (East) | |
UtcMinus0400AtlanticTime = 17; // (UTC-04:00) Atlantic Time (Canada) | |
UtcMinus0400Lapaz = 18; // (UTC-04:00) La Paz | |
UtcMinus0400Manaus = 19; // (UTC-04:00) Manaus | |
UtcMinus0400Santiago = 20; // (UTC-04:00) Santiago | |
UtcMinus0430Caracas = 21; // (UTC-04:30) Caracas | |
UtcMinus0330Newfoundland = 22; // (UTC-03:30) Newfoundland | |
UtcMinus0300Brasilia = 23; // (UTC-03:00) Brasilia | |
UtcMinus0300BuenosAires_Georgetown = 24; // (UTC-03:00) Buenos Aires, Georgetown | |
UtcMinus0300Greenland = 25; // (UTC-03:00) Greenland | |
UtcMinus0300Montevideo = 26; // (UTC-03:00) Montevideo | |
UtcMinus0200MidAtlantic = 27; // (UTC-02:00) Mid-Atlantic | |
UtcMinus0100Azores = 28; // (UTC-01:00) Azores | |
UtcMinus0100CapeVerdIs = 29; // (UTC-01:00) Cape Verde Is. | |
Utc0000Casablanca_Montrovia_Reykjavik = 30; // (UTC+-0:00) Casablanca, Monrovia, Reykjavik | |
Utc0000Dublin_Edinburgh_Lisbon_London = 31; // (UTC+-0:00) Dublin, Edinburgh, Lisbon, London | |
UtcPlus0100Amsterdam_Berlin_Bern_Rome = 32; // (UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna | |
UtcPlus0100Belgrade_Bratislava_Budapest = 33; // (UTC+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague | |
UtcPlus0100Brussels_Copenhagen_Madrid = 34; // (UTC+01:00) Brussels, Copenhagen, Madrid, Paris | |
UtcPlus0100Sarajevo_Skopje_Warsaw_Zagreb = 35; // (UTC+01:00) Sarajevo, Skopje, Warsaw, Zagreb | |
UtcPlus0100WestCentralAfrica = 36; // (UTC+01:00) West Central Africa | |
UtcPlus0200Amman = 37; // (UTC+02:00) Amman | |
UtcPlus0200Athens_Bucharest_Istanbul = 38; // (UTC+02:00) Athens, Bucharest, Istanbul | |
UtcPlus0200Beirut = 39; // (UTC+02:00) Beirut | |
UtcPlus0200Minsk = 40; // (UTC+02:00) Minsk | |
UtcPlus0200Cairo = 41; // (UTC+02:00) Cairo | |
UtcPlus0200Harare_Pretoria = 42; // (UTC+02:00) Harare, Pretoria | |
UtcPlus0200Helsinki_Kyiv_Riga_Vilnius = 43; // (UTC+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius | |
UtcPlus0200Jerusalem = 44; // (UTC+02:00) Jerusalem | |
UtcPlus0200Windhoek = 45; // (UTC+02:00) Windhoek | |
UtcPlus0300Baghdad = 46; // (UTC+03:00) Baghdad | |
UtcPlus0300Kuwait_Riyadh = 47; // (UTC+03:00) Kuwait, Riyadh | |
UtcPlus0300Moscow_StPetersburg_Volgograd = 48; // (UTC+03:00) Moscow, St. Petersburg, Volgograd | |
UtcPlus0300Nairobi = 49; // (UTC+03:00) Nairobi | |
UtcPlus0300Tbilisi = 50; // (UTC+03:00) Tbilisi | |
UtcPlus0330Tehran = 51; // (UTC+03:30) Tehran | |
UtcPlus0400AbuDhabi_Muscat = 52; // (UTC+04:00) Abu Dhabi, Muscat | |
UtcPlus0400Baku = 53; // (UTC+04:00) Baku | |
UtcPlus0400CaucasusStandardTime = 54; // (UTC+04:00) Caucasus Standard Time | |
UtcPlus0400Yerevan = 55; // (UTC+04:00) Yerevan | |
UtcPlus0430Kabul = 56; // (UTC+04:30) Kabul | |
UtcPlus0500Ekaterinburg = 57; // (UTC+05:00) Ekaterinburg | |
UtcPlus0500Islamabad_Karachi_Tashkent = 58; // (UTC+05:00) Islamabad, Karachi, Tashkent | |
UtcPlus0530Chennai_Kolkata_Mumbai = 59; // (UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi | |
UtcPlus0530SriJayawardenepura = 60; // (UTC+05:30) Sri Jayawardenepura | |
UtcPlus0545Kathmandu = 61; // (UTC+05:45) Kathmandu | |
UtcPlus0600Almaty_Novosibirsk = 62; // (UTC+06:00) Almaty, Novosibirsk | |
UtcPlus0600Astana_Dhaka = 63; // (UTC+06:00) Astana, Dhaka | |
UtcPlus0630Yangon = 64; // (UTC+06:30) Yangon (Rangoon) | |
UtcPlus0700Bangkok_Hanoi_Jakarta = 65; // (UTC+07:00) Bangkok, Hanoi, Jakarta | |
UtcPlus0700Krasnoyarsk = 66; // (UTC+07:00) Krasnoyarsk | |
UtcPlus0800Beijing_Chongqing_HongKong = 67; // (UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi | |
UtcPlus0800Irkutsk_UlaanBataar = 68; // (UTC+08:00) Irkutsk, Ulaan Bataar | |
UtcPlus0800KualaLumpur_Singapore = 69; // (UTC+08:00) Kuala Lumpur, Singapore | |
UtcPlus0800Perth = 70; // (UTC+08:00) Perth | |
UtcPlus0800Taipei = 71; // (UTC+08:00) Taipei | |
UtcPlus0900Osaka_Sapporo_Tokyo = 72; // (UTC+09:00) Osaka, Sapporo, Tokyo | |
UtcPlus0900Seoul = 73; // (UTC+09:00) Seoul | |
UtcPlus0900Yakutsk = 74; // (UTC+09:00) Yakutsk | |
UtcPlus0930Adelaide = 75; // (UTC+09:30) Adelaide | |
UtcPlus0930Darwin = 76; // (UTC+09:30) Darwin | |
UtcPlus1000Brisbane = 77; // (UTC+10:00) Brisbane | |
UtcPlus1000Canberra_Melbourne_Sydney = 78; // (UTC+10:00) Canberra, Melbourne, Sydney | |
UtcPlus1000Guam_PortMoresby = 79; // (UTC+10:00) Guam, Port Moresby | |
UtcPlus1000Hobart = 80; // (UTC+10:00) Hobart | |
UtcPlus1000Vladivostok = 81; // (UTC+10:00) Vladivostok | |
UtcPlus1100Magadan_Solomonis = 82; // (UTC+11:00) Magadan, Solomon Is., New Caledonia | |
UtcPlus1200Auckland_Wellington = 83; // (UTC+12:00) Auckland, Wellington | |
UtcPlus1200Fiji_Kamchatka_MarshallIs = 84; // (UTC+12:00) Fiji, Kamchatka, Marshall Is. | |
UtcPlus1300Nuku_alofa = 85; // (UTC+13:00) Nuku'alofa | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment