Skip to content

Instantly share code, notes, and snippets.

@abdulawal39
Created March 9, 2020 11:45
Show Gist options
  • Save abdulawal39/0b2d2e777d2ad1d087376e62047d4d5a to your computer and use it in GitHub Desktop.
Save abdulawal39/0b2d2e777d2ad1d087376e62047d4d5a to your computer and use it in GitHub Desktop.
Timezones Array
$timezone_list = array(
'America/New_York' => 'Eastern Standard Time',
'America/Adak' => 'Hawaii-Aleutian Standard Time',
'America/Atka' => 'Hawaii-Aleutian Standard Time',
'America/Anchorage' => 'Alaska Standard Time',
'America/Juneau' => 'Alaska Standard Time',
'America/Nome' => 'Alaska Standard Time',
'America/Yakutat' => 'Alaska Standard Time',
'America/Dawson' => 'Pacific Standard Time',
'America/Ensenada' => 'Pacific Standard Time',
'America/Los_Angeles' => 'Pacific Standard Time',
'America/Tijuana' => 'Pacific Standard Time',
'America/Vancouver' => 'Pacific Standard Time',
'America/Whitehorse' => 'Pacific Standard Time',
'Canada/Pacific' => 'Pacific Standard Time',
'Canada/Yukon' => 'Pacific Standard Time',
'Mexico/BajaNorte' => 'Pacific Standard Time',
'America/Boise' => 'Mountain Standard Time',
'America/Cambridge_Bay' => 'Mountain Standard Time',
'America/Chihuahua' => 'Mountain Standard Time',
'America/Dawson_Creek' => 'Mountain Standard Time',
'America/Denver' => 'Mountain Standard Time',
'America/Edmonton' => 'Mountain Standard Time',
'America/Hermosillo' => 'Mountain Standard Time',
'America/Inuvik' => 'Mountain Standard Time',
'America/Mazatlan' => 'Mountain Standard Time',
'America/Phoenix' => 'Mountain Standard Time',
'America/Shiprock' => 'Mountain Standard Time',
'America/Yellowknife' => 'Mountain Standard Time',
'Canada/Mountain' => 'Mountain Standard Time',
'Mexico/BajaSur' => 'Mountain Standard Time',
'America/Belize' => 'Central Standard Time',
'America/Cancun' => 'Central Standard Time',
'America/Chicago' => 'Central Standard Time',
'America/Costa_Rica' => 'Central Standard Time',
'America/El_Salvador' => 'Central Standard Time',
'America/Guatemala' => 'Central Standard Time',
'America/Knox_IN' => 'Central Standard Time',
'America/Managua' => 'Central Standard Time',
'America/Menominee' => 'Central Standard Time',
'America/Merida' => 'Central Standard Time',
'America/Mexico_City' => 'Central Standard Time',
'America/Monterrey' => 'Central Standard Time',
'America/Rainy_River' => 'Central Standard Time',
'America/Rankin_Inlet' => 'Central Standard Time',
'America/Regina' => 'Central Standard Time',
'America/Swift_Current' => 'Central Standard Time',
'America/Tegucigalpa' => 'Central Standard Time',
'America/Winnipeg' => 'Central Standard Time',
'Canada/Central' => 'Central Standard Time',
'Canada/East-Saskatchewan' => 'Central Standard Time',
'Canada/Saskatchewan' => 'Central Standard Time',
'Chile/EasterIsland' => 'Easter Is. Time',
'Mexico/General' => 'Central Standard Time',
'America/Atikokan' => 'Eastern Standard Time',
'America/Bogota' => 'Colombia Time',
'America/Cayman' => 'Eastern Standard Time',
'America/Coral_Harbour' => 'Eastern Standard Time',
'America/Detroit' => 'Eastern Standard Time',
'America/Fort_Wayne' => 'Eastern Standard Time',
'America/Grand_Turk' => 'Eastern Standard Time',
'America/Guayaquil' => 'Ecuador Time',
'America/Havana' => 'Cuba Standard Time',
'America/Indianapolis' => 'Eastern Standard Time',
'America/Iqaluit' => 'Eastern Standard Time',
'America/Jamaica' => 'Eastern Standard Time',
'America/Lima' => 'Peru Time',
'America/Louisville' => 'Eastern Standard Time',
'America/Montreal' => 'Eastern Standard Time',
'America/Nassau' => 'Eastern Standard Time',
'America/Nipigon' => 'Eastern Standard Time',
'America/Panama' => 'Eastern Standard Time',
'America/Pangnirtung' => 'Eastern Standard Time',
'America/Port-au-Prince' => 'Eastern Standard Time',
'America/Resolute' => 'Eastern Standard Time',
'America/Thunder_Bay' => 'Eastern Standard Time',
'America/Toronto' => 'Eastern Standard Time',
'Canada/Eastern' => 'Eastern Standard Time',
'America/Caracas' => 'Venezuela Time',
'America/Anguilla' => 'Atlantic Standard Time',
'America/Antigua' => 'Atlantic Standard Time',
'America/Aruba' => 'Atlantic Standard Time',
'America/Asuncion' => 'Paraguay Time',
'America/Barbados' => 'Atlantic Standard Time',
'America/Blanc-Sablon' => 'Atlantic Standard Time',
'America/Boa_Vista' => 'Amazon Time',
'America/Campo_Grande' => 'Amazon Time',
'America/Cuiaba' => 'Amazon Time',
'America/Curacao' => 'Atlantic Standard Time',
'America/Dominica' => 'Atlantic Standard Time',
'America/Eirunepe' => 'Amazon Time',
'America/Glace_Bay' => 'Atlantic Standard Time',
'America/Goose_Bay' => 'Atlantic Standard Time',
'America/Grenada' => 'Atlantic Standard Time',
'America/Guadeloupe' => 'Atlantic Standard Time',
'America/Guyana' => 'Guyana Time',
'America/Halifax' => 'Atlantic Standard Time',
'America/La_Paz' => 'Bolivia Time',
'America/Manaus' => 'Amazon Time',
'America/Marigot' => 'Atlantic Standard Time',
'America/Martinique' => 'Atlantic Standard Time',
'America/Moncton' => 'Atlantic Standard Time',
'America/Montserrat' => 'Atlantic Standard Time',
'America/Port_of_Spain' => 'Atlantic Standard Time',
'America/Porto_Acre' => 'Amazon Time',
'America/Porto_Velho' => 'Amazon Time',
'America/Puerto_Rico' => 'Atlantic Standard Time',
'America/Rio_Branco' => 'Amazon Time',
'America/Santiago' => 'Chile Time',
'America/Santo_Domingo' => 'Atlantic Standard Time',
'America/St_Barthelemy' => 'Atlantic Standard Time',
'America/St_Kitts' => 'Atlantic Standard Time',
'America/St_Lucia' => 'Atlantic Standard Time',
'America/St_Thomas' => 'Atlantic Standard Time',
'America/St_Vincent' => 'Atlantic Standard Time',
'America/Thule' => 'Atlantic Standard Time',
'America/Tortola' => 'Atlantic Standard Time',
'America/Virgin' => 'Atlantic Standard Time',
'Antarctica/Palmer' => 'Chile Time',
'Atlantic/Bermuda' => 'Atlantic Standard Time',
'Atlantic/Stanley' => 'Falkland Is. Time',
'Brazil/Acre' => 'Amazon Time',
'Brazil/West' => 'Amazon Time',
'Canada/Atlantic' => 'Atlantic Standard Time',
'Chile/Continental' => 'Chile Time',
'America/St_Johns' => 'Newfoundland Standard Time',
'Canada/Newfoundland' => 'Newfoundland Standard Time',
'America/Araguaina' => 'Brasilia Time',
'America/Bahia' => 'Brasilia Time',
'America/Belem' => 'Brasilia Time',
'America/Buenos_Aires' => 'Argentine Time',
'America/Catamarca' => 'Argentine Time',
'America/Cayenne' => 'French Guiana Time',
'America/Cordoba' => 'Argentine Time',
'America/Fortaleza' => 'Brasilia Time',
'America/Godthab' => 'Western Greenland Time',
'America/Jujuy' => 'Argentine Time',
'America/Maceio' => 'Brasilia Time',
'America/Mendoza' => 'Argentine Time',
'America/Miquelon' => 'Pierre & Miquelon Standard Time',
'America/Montevideo' => 'Uruguay Time',
'America/Paramaribo' => 'Suriname Time',
'America/Recife' => 'Brasilia Time',
'America/Rosario' => 'Argentine Time',
'America/Santarem' => 'Brasilia Time',
'America/Sao_Paulo' => 'Brasilia Time',
'Antarctica/Rothera' => 'Rothera Time',
'Brazil/East' => 'Brasilia Time',
'America/Noronha' => 'Fernando de Noronha Time',
'Atlantic/South_Georgia' => 'South Georgia Standard Time',
'Brazil/DeNoronha' => 'Fernando de Noronha Time',
'America/Scoresbysund' => 'Eastern Greenland Time',
'Atlantic/Azores' => 'Azores Time',
'Atlantic/Cape_Verde' => 'Cape Verde Time',
'Africa/Abidjan' => 'Greenwich Mean Time',
'Africa/Accra' => 'Ghana Mean Time',
'Africa/Bamako' => 'Greenwich Mean Time',
'Africa/Banjul' => 'Greenwich Mean Time',
'Africa/Bissau' => 'Greenwich Mean Time',
'Africa/Casablanca' => 'Western European Time',
'Africa/Conakry' => 'Greenwich Mean Time',
'Africa/Dakar' => 'Greenwich Mean Time',
'Africa/El_Aaiun' => 'Western European Time',
'Africa/Freetown' => 'Greenwich Mean Time',
'Africa/Lome' => 'Greenwich Mean Time',
'Africa/Monrovia' => 'Greenwich Mean Time',
'Africa/Nouakchott' => 'Greenwich Mean Time',
'Africa/Ouagadougou' => 'Greenwich Mean Time',
'Africa/Sao_Tome' => 'Greenwich Mean Time',
'Africa/Timbuktu' => 'Greenwich Mean Time',
'America/Danmarkshavn' => 'Greenwich Mean Time',
'Atlantic/Canary' => 'Western European Time',
'Atlantic/Faeroe' => 'Western European Time',
'Atlantic/Faroe' => 'Western European Time',
'Atlantic/Madeira' => 'Western European Time',
'Atlantic/Reykjavik' => 'Greenwich Mean Time',
'Atlantic/St_Helena' => 'Greenwich Mean Time',
'Europe/Belfast' => 'Greenwich Mean Time',
'Europe/Dublin' => 'Greenwich Mean Time',
'Europe/Guernsey' => 'Greenwich Mean Time',
'Europe/Isle_of_Man' => 'Greenwich Mean Time',
'Europe/Jersey' => 'Greenwich Mean Time',
'Europe/Lisbon' => 'Western European Time',
'Europe/London' => 'Greenwich Mean Time',
'Africa/Algiers' => 'Central European Time',
'Africa/Bangui' => 'Western African Time',
'Africa/Brazzaville' => 'Western African Time',
'Africa/Ceuta' => 'Central European Time',
'Africa/Douala' => 'Western African Time',
'Africa/Kinshasa' => 'Western African Time',
'Africa/Lagos' => 'Western African Time',
'Africa/Libreville' => 'Western African Time',
'Africa/Luanda' => 'Western African Time',
'Africa/Malabo' => 'Western African Time',
'Africa/Ndjamena' => 'Western African Time',
'Africa/Niamey' => 'Western African Time',
'Africa/Porto-Novo' => 'Western African Time',
'Africa/Tunis' => 'Central European Time',
'Africa/Windhoek' => 'Western African Time',
'Arctic/Longyearbyen' => 'Central European Time',
'Atlantic/Jan_Mayen' => 'Central European Time',
'Europe/Amsterdam' => 'Central European Time',
'Europe/Andorra' => 'Central European Time',
'Europe/Belgrade' => 'Central European Time',
'Europe/Berlin' => 'Central European Time',
'Europe/Bratislava' => 'Central European Time',
'Europe/Brussels' => 'Central European Time',
'Europe/Budapest' => 'Central European Time',
'Europe/Copenhagen' => 'Central European Time',
'Europe/Gibraltar' => 'Central European Time',
'Europe/Ljubljana' => 'Central European Time',
'Europe/Luxembourg' => 'Central European Time',
'Europe/Madrid' => 'Central European Time',
'Europe/Malta' => 'Central European Time',
'Europe/Monaco' => 'Central European Time',
'Europe/Oslo' => 'Central European Time',
'Europe/Paris' => 'Central European Time',
'Europe/Podgorica' => 'Central European Time',
'Europe/Prague' => 'Central European Time',
'Europe/Rome' => 'Central European Time',
'Europe/San_Marino' => 'Central European Time',
'Europe/Sarajevo' => 'Central European Time',
'Europe/Skopje' => 'Central European Time',
'Europe/Stockholm' => 'Central European Time',
'Europe/Tirane' => 'Central European Time',
'Europe/Vaduz' => 'Central European Time',
'Europe/Vatican' => 'Central European Time',
'Europe/Vienna' => 'Central European Time',
'Europe/Warsaw' => 'Central European Time',
'Europe/Zagreb' => 'Central European Time',
'Europe/Zurich' => 'Central European Time',
'Africa/Blantyre' => 'Central African Time',
'Africa/Bujumbura' => 'Central African Time',
'Africa/Cairo' => 'Eastern European Time',
'Africa/Gaborone' => 'Central African Time',
'Africa/Harare' => 'Central African Time',
'Africa/Johannesburg' => 'South Africa Standard Time',
'Africa/Kigali' => 'Central African Time',
'Africa/Lubumbashi' => 'Central African Time',
'Africa/Lusaka' => 'Central African Time',
'Africa/Maputo' => 'Central African Time',
'Africa/Maseru' => 'South Africa Standard Time',
'Africa/Mbabane' => 'South Africa Standard Time',
'Africa/Tripoli' => 'Eastern European Time',
'Asia/Amman' => 'Eastern European Time',
'Asia/Beirut' => 'Eastern European Time',
'Asia/Damascus' => 'Eastern European Time',
'Asia/Gaza' => 'Eastern European Time',
'Asia/Istanbul' => 'Eastern European Time',
'Asia/Jerusalem' => 'Israel Standard Time',
'Asia/Nicosia' => 'Eastern European Time',
'Asia/Tel_Aviv' => 'Israel Standard Time',
'Europe/Athens' => 'Eastern European Time',
'Europe/Bucharest' => 'Eastern European Time',
'Europe/Chisinau' => 'Eastern European Time',
'Europe/Helsinki' => 'Eastern European Time',
'Europe/Istanbul' => 'Eastern European Time',
'Europe/Kaliningrad' => 'Eastern European Time',
'Europe/Kiev' => 'Eastern European Time',
'Europe/Mariehamn' => 'Eastern European Time',
'Europe/Minsk' => 'Eastern European Time',
'Europe/Nicosia' => 'Eastern European Time',
'Europe/Riga' => 'Eastern European Time',
'Europe/Simferopol' => 'Eastern European Time',
'Europe/Sofia' => 'Eastern European Time',
'Europe/Tallinn' => 'Eastern European Time',
'Europe/Tiraspol' => 'Eastern European Time',
'Europe/Uzhgorod' => 'Eastern European Time',
'Europe/Vilnius' => 'Eastern European Time',
'Europe/Zaporozhye' => 'Eastern European Time',
'Africa/Addis_Ababa' => 'Eastern African Time',
'Africa/Asmara' => 'Eastern African Time',
'Africa/Asmera' => 'Eastern African Time',
'Africa/Dar_es_Salaam' => 'Eastern African Time',
'Africa/Djibouti' => 'Eastern African Time',
'Africa/Kampala' => 'Eastern African Time',
'Africa/Khartoum' => 'Eastern African Time',
'Africa/Mogadishu' => 'Eastern African Time',
'Africa/Nairobi' => 'Eastern African Time',
'Antarctica/Syowa' => 'Syowa Time',
'Asia/Aden' => 'Arabia Standard Time',
'Asia/Baghdad' => 'Arabia Standard Time',
'Asia/Bahrain' => 'Arabia Standard Time',
'Asia/Kuwait' => 'Arabia Standard Time',
'Asia/Qatar' => 'Arabia Standard Time',
'Europe/Moscow' => 'Moscow Standard Time',
'Europe/Volgograd' => 'Volgograd Time',
'Indian/Antananarivo' => 'Eastern African Time',
'Indian/Comoro' => 'Eastern African Time',
'Indian/Mayotte' => 'Eastern African Time',
'Asia/Tehran' => 'Iran Standard Time',
'Asia/Baku' => 'Azerbaijan Time',
'Asia/Dubai' => 'Gulf Standard Time',
'Asia/Muscat' => 'Gulf Standard Time',
'Asia/Tbilisi' => 'Georgia Time',
'Asia/Yerevan' => 'Armenia Time',
'Europe/Samara' => 'Samara Time',
'Indian/Mahe' => 'Seychelles Time',
'Indian/Mauritius' => 'Mauritius Time',
'Indian/Reunion' => 'Reunion Time',
'Asia/Kabul' => 'Afghanistan Time',
'Asia/Aqtau' => 'Aqtau Time',
'Asia/Aqtobe' => 'Aqtobe Time',
'Asia/Ashgabat' => 'Turkmenistan Time',
'Asia/Ashkhabad' => 'Turkmenistan Time',
'Asia/Dushanbe' => 'Tajikistan Time',
'Asia/Karachi' => 'Pakistan Time',
'Asia/Oral' => 'Oral Time',
'Asia/Samarkand' => 'Uzbekistan Time',
'Asia/Tashkent' => 'Uzbekistan Time',
'Asia/Yekaterinburg' => 'Yekaterinburg Time',
'Indian/Kerguelen' => 'French Southern & Antarctic Lands Time',
'Indian/Maldives' => 'Maldives Time',
'Asia/Calcutta' => 'India Standard Time',
'Asia/Colombo' => 'India Standard Time',
'Asia/Kolkata' => 'India Standard Time',
'Asia/Katmandu' => 'Nepal Time',
'Antarctica/Mawson' => 'Mawson Time',
'Antarctica/Vostok' => 'Vostok Time',
'Asia/Almaty' => 'Alma-Ata Time',
'Asia/Bishkek' => 'Kirgizstan Time',
'Asia/Dacca' => 'Bangladesh Time',
'Asia/Dhaka' => 'Bangladesh Time',
'Asia/Novosibirsk' => 'Novosibirsk Time',
'Asia/Omsk' => 'Omsk Time',
'Asia/Qyzylorda' => 'Qyzylorda Time',
'Asia/Thimbu' => 'Bhutan Time',
'Asia/Thimphu' => 'Bhutan Time',
'Indian/Chagos' => 'Indian Ocean Territory Time',
'Asia/Rangoon' => 'Myanmar Time',
'Indian/Cocos' => 'Cocos Islands Time',
'Antarctica/Davis' => 'Davis Time',
'Asia/Bangkok' => 'Indochina Time',
'Asia/Ho_Chi_Minh' => 'Indochina Time',
'Asia/Hovd' => 'Hovd Time',
'Asia/Jakarta' => 'West Indonesia Time',
'Asia/Krasnoyarsk' => 'Krasnoyarsk Time',
'Asia/Phnom_Penh' => 'Indochina Time',
'Asia/Pontianak' => 'West Indonesia Time',
'Asia/Saigon' => 'Indochina Time',
'Asia/Vientiane' => 'Indochina Time',
'Indian/Christmas' => 'Christmas Island Time',
'Antarctica/Casey' => 'Western Standard Time (Australia)',
'Asia/Brunei' => 'Brunei Time',
'Asia/Choibalsan' => 'Choibalsan Time',
'Asia/Chongqing' => 'China Standard Time',
'Asia/Chungking' => 'China Standard Time',
'Asia/Harbin' => 'China Standard Time',
'Asia/Hong_Kong' => 'Hong Kong Time',
'Asia/Irkutsk' => 'Irkutsk Time',
'Asia/Kashgar' => 'China Standard Time',
'Asia/Kuala_Lumpur' => 'Malaysia Time',
'Asia/Kuching' => 'Malaysia Time',
'Asia/Macao' => 'China Standard Time',
'Asia/Macau' => 'China Standard Time',
'Asia/Makassar' => 'Central Indonesia Time',
'Asia/Manila' => 'Philippines Time',
'Asia/Shanghai' => 'China Standard Time',
'Asia/Singapore' => 'Singapore Time',
'Asia/Taipei' => 'China Standard Time',
'Asia/Ujung_Pandang' => 'Central Indonesia Time',
'Asia/Ulaanbaatar' => 'Ulaanbaatar Time',
'Asia/Ulan_Bator' => 'Ulaanbaatar Time',
'Asia/Urumqi' => 'China Standard Time',
'Australia/Perth' => 'Western Standard Time (Australia)',
'Australia/West' => 'Western Standard Time (Australia)',
'Australia/Eucla' => 'Central Western Standard Time (Australia)',
'Asia/Dili' => 'Timor-Leste Time',
'Asia/Jayapura' => 'East Indonesia Time',
'Asia/Pyongyang' => 'Korea Standard Time',
'Asia/Seoul' => 'Korea Standard Time',
'Asia/Tokyo' => 'Japan Standard Time',
'Asia/Yakutsk' => 'Yakutsk Time',
'Australia/Adelaide' => 'Central Standard Time (South Australia)',
'Australia/Broken_Hill' => 'Central Standard Time (South Australia/New South Wales)',
'Australia/Darwin' => 'Central Standard Time (Northern Territory)',
'Australia/North' => 'Central Standard Time (Northern Territory)',
'Australia/South' => 'Central Standard Time (South Australia)',
'Australia/Yancowinna' => 'Central Standard Time (South Australia/New South Wales)',
'Antarctica/DumontDUrville' => 'Dumont-d\'Urville Time',
'Asia/Sakhalin' => 'Sakhalin Time',
'Asia/Vladivostok' => 'Vladivostok Time',
'Australia/ACT' => 'Eastern Standard Time (New South Wales)',
'Australia/Brisbane' => 'Eastern Standard Time (Queensland)',
'Australia/Canberra' => 'Eastern Standard Time (New South Wales)',
'Australia/Currie' => 'Eastern Standard Time (New South Wales)',
'Australia/Hobart' => 'Eastern Standard Time (Tasmania)',
'Australia/Lindeman' => 'Eastern Standard Time (Queensland)',
'Australia/Melbourne' => 'Eastern Standard Time (Victoria)',
'Australia/NSW' => 'Eastern Standard Time (New South Wales)',
'Australia/Queensland' => 'Eastern Standard Time (Queensland)',
'Australia/Sydney' => 'Eastern Standard Time (New South Wales)',
'Australia/Tasmania' => 'Eastern Standard Time (Tasmania)',
'Australia/Victoria' => 'Eastern Standard Time (Victoria)',
'Australia/LHI' => 'Lord Howe Standard Time',
'Australia/Lord_Howe' => 'Lord Howe Standard Time',
'Asia/Magadan' => 'Magadan Time',
'Antarctica/McMurdo' => 'New Zealand Standard Time',
'Antarctica/South_Pole' => 'New Zealand Standard Time',
'Asia/Anadyr' => 'Anadyr Time',
'Asia/Kamchatka' => 'Petropavlovsk-Kamchatski Time'
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment