PHP Output all time zones list

Source: Internet
Author: User
Tags cairo time zones timezones
This article mainly introduces the method of PHP output the global time zone list, and customizes an array variable to hold the information of each time zone in the world. We hope to help you.

The implementation method is as follows:


<?php$timezones =array (' (gmt-12:00) International Date line West ' + ' pacific/wake ', ' (gmt-11:00) Midway Island ' = > ' Pacific/apia ', ' (gmt-11:00) Samoa ' = ' Pacific/apia ', ' (gmt-10:00) Hawaii ' = ' pacific/honolulu ', ' (gmt-09:0 0) Alaska ' = ' america/anchorage ', ' (gmt-08:00) Pacific time (US & Canada); Tijuana ' + ' america/los_angeles ', ' (gmt-07:00) Arizona ' = ' America/phoenix ', ' (gmt-07:00) Chihuahua ' = ' America/chihuahua ', ' (gmt-07:00) La Paz ' = ' America/chihuahua ', ' (gmt-07:00) Mazatlan ' = ' America/chihuahua ', ' (  gmt-07:00) Mountain time (US & Canada) ' = ' america/denver ', ' (gmt-06:00) central America ' = ' America/managua ', ' (gmt-06:00) Central Time (US & Canada) ' = ' America/chicago ', ' (gmt-06:00) Guadalajara ' = ' america/mexico_cit Y ', ' (gmt-06:00) Mexico City ' = ' america/mexico_city ', ' (gmt-06:00) Monterrey ' = ' america/mexico_city ', ' (GMT-06 : xx) Saskatchewan ' = ' America/regina ', ' (gmt-05:00) Bogota ' = ' AmerIca/bogota ', ' (gmt-05:00) Eastern time (US & Canada) ' = ' america/new_york ', ' (gmt-05:00) Indiana (East) ' + ' Am Erica/indiana/indianapolis ', ' (gmt-05:00) Lima ' = ' America/bogota ', ' (gmt-05:00) Quito ' = ' America/bogota ', ' ( gmt-04:00) Atlantic time (Canada) ' = ' america/halifax ', ' (gmt-04:00) Caracas ' = ' America/caracas ', ' (gmt-04:00) L A Paz ' = ' America/caracas ', ' (gmt-04:00) Santiago ' = ' America/santiago ', ' (gmt-03:30) Newfoundland ' = ' americ A/st_johns ', ' (gmt-03:00) Brasilia ' = ' america/sao_paulo ', ' (gmt-03:00) Buenos Aires ' + ' america/argentina/ Buenos_aires ', ' (gmt-03:00) Georgetown ' = ' america/argentina/buenos_aires ', ' (gmt-03:00) Greenland ' = ' America /godthab ', ' (gmt-02:00) mid-atlantic ' = ' America/noronha ', ' (gmt-01:00) Azores ' = ' atlantic/azores ', ' (gmt-01:0 0) Cape Verde is. ' = ' + ' Atlantic/cape_verde ', ' (GMT) Casablanca ' = ' Africa/casablanca ', ' (GMT) Edinburgh ' + ' Eur Ope/london ', ' (GMT) Greenwich Mean Time:duBlin ' + ' Europe/london ', ' (GMT) Lisbon ' = ' Europe/london ', ' (GMT) London ' = ' Europe/london ', ' (GMT) Monrovia ' = ' Africa/casablanca ', ' (gmt+01:00) Amsterdam ' = ' Europe/berlin ', ' (gmt+01:00) Belgrade ' = ' europe/ Belgrade ', ' (gmt+01:00) Berlin ' = ' Europe/berlin ', ' (gmt+01:00) Bern ' = ' Europe/berlin ', ' (gmt+01:00) Bratislava ' + ' Europe/belgrade ', ' (gmt+01:00) Brussels ' = ' europe/paris ', ' (gmt+01:00) Budapest ' = ' europe/ Belgrade ', ' (gmt+01:00) Copenhagen ' = ' Europe/paris ', ' (gmt+01:00) Ljubljana ' = ' europe/belgrade ', ' (gmt+01:00) Madrid ' = ' europe/paris ', ' (gmt+01:00) Paris ' = ' europe/paris ', ' (gmt+01:00) Prague ' = ' europe/belgrade ', ' (G mt+01:00) Rome ' = ' Europe/berlin ', ' (gmt+01:00) Sarajevo ' = ' Europe/sarajevo ', ' (gmt+01:00) Skopje ' = ' Europe /sarajevo ', ' (gmt+01:00) Stockholm ' = ' Europe/berlin ', ' (gmt+01:00) Vienna ' = ' Europe/berlin ', ' (gmt+01:00) Warsaw ' = ' Europe/sarajevo ', ' (gmt+01:00) West Central AFrica ' = ' africa/lagos ', ' (gmt+01:00) Zagreb ' = ' Europe/sarajevo ', ' (gmt+02:00) Athens ' = ' Europe/istanbul ', ' (gmt+02:00) Bucharest ' = ' europe/bucharest ', ' (gmt+02:00) Cairo ' = ' Africa/cairo ', ' (gmt+02:00) Harare ' = ' A Frica/johannesburg ', ' (gmt+02:00) Helsinki ' = ' Europe/helsinki ', ' (gmt+02:00) Istanbul ' = ' Europe/istanbul ', ' ( gmt+02:00) Jerusalem ' = ' asia/jerusalem ', ' (gmt+02:00) Kyiv ' = ' Europe/helsinki ', ' (gmt+02:00) Minsk ' = ' and ' Euro ' Pe/istanbul ', ' (gmt+02:00) Pretoria ' = ' Africa/johannesburg ', ' (gmt+02:00) Riga ' = ' Europe/helsinki ', ' (gmt+ 02:00) Sofia ' = ' Europe/helsinki ', ' (gmt+02:00) Tallinn ' = ' Europe/helsinki ', ' (gmt+02:00) Vilnius ' = ' Europe /helsinki ', ' (gmt+03:00) Baghdad ' = ' asia/baghdad ', ' (gmt+03:00) Kuwait ' = ' asia/riyadh ', ' (gmt+03:00) Moscow ' =& Gt ' Europe/moscow ', ' (gmt+03:00) Nairobi ' = ' Africa/nairobi ', ' (gmt+03:00) Riyadh ' = ' asia/riyadh ', ' (gmt+03:00) St. Petersburg ' = ' europe/moscow ', ' (gmt+03:00) Volgograd ' = ' europe/moscow ', ' (gmt+03:30) Tehran ' = ' Asia/tehran ', ' (gmt+04:00) Abu Dhabi ' = ' A Sia/muscat ', ' (gmt+04:00) Baku ' = ' asia/tbilisi ', ' (gmt+04:00) Muscat ' = ' asia/muscat ', ' (gmt+04:00) Tbilisi ' =&G T ' Asia/tbilisi ', ' (gmt+04:00) Yerevan ' = ' asia/tbilisi ', ' (gmt+04:30) Kabul ' = ' Asia/kabul ', ' (gmt+05:00) Ekaterinburg ' + ' Asia/yekaterinburg ', ' (gmt+05:00) Islamabad ' = ' Asia/karachi ', ' (gmt+05:00) Karachi ' = ' Asia/karachi ', ' (gmt+05:00) Tashkent ' = ' Asia/karachi ', ' (gmt+05:30) Chennai ' = ' Asia/calcutta ', ' (gmt+05:30) Kolkata ' + ' Asia/calcutta ', ' (gmt+05:30) Mumbai ' = ' Asia/calcutta ', ' (gmt+05:30) New Delhi ' = ' Asia/calcutta ' , ' (gmt+05:45) Kathmandu ' = ' Asia/katmandu ', ' (gmt+06:00) Almaty ' = ' Asia/novosibirsk ', ' (gmt+06:00) Astana ' =&gt ; ' Asia/dhaka ', ' (gmt+06:00) Dhaka ' = ' Asia/dhaka ', ' (gmt+06:00) Novosibirsk ' = ' Asia/novosibirsk ', ' (gmt+06:00) Sri Jayawardenepura ' = ' Asia/colombo ',' (gmt+06:30) Rangoon ' = ' asia/rangoon ', ' (gmt+07:00) Bangkok ' = ' Asia/bangkok ', ' (gmt+07:00) Hanoi ' = ' asia/b Angkok ', ' (gmt+07:00) Jakarta ' = ' Asia/bangkok ', ' (gmt+07:00) Krasnoyarsk ' = ' Asia/krasnoyarsk ', ' (gmt+08:00) Beijing ' = ' asia/hong_kong ', ' (gmt+08:00) chongqing ' = ' asia/hong_kong ', ' (gmt+08:00) Hong Kong ' "and ' Asia/hong _kong ', ' (gmt+08:00) Irkutsk ' = ' Asia/irkutsk ', ' (gmt+08:00) Kuala Lumpur ' + ' Asia/singapore ', ' (gmt+08:00) Perth ' = = ' Australia/perth ', ' (gmt+08:00) Singapore ' = ' asia/singapore ', ' (gmt+08:00) Taipei ' = ' Asia/taipei ', ' (GM t+08:00) Ulaan bataar ' = ' Asia/irkutsk ', ' (gmt+08:00) Urumqi ' = ' asia/hong_kong ', ' (gmt+09:00) Osaka ' = ' asia/ Tokyo ', ' (gmt+09:00) Sapporo ' = ' Asia/tokyo ', ' (gmt+09:00) Seoul ' = ' Asia/seoul ', ' (gmt+09:00) Tokyo ' = ' asia/' Tokyo ', ' (gmt+09:00) Yakutsk ' = ' Asia/yakutsk ', ' (gmt+09:30) Adelaide ' = ' australia/adelaide ', ' (gmt+09:30) Darwin ' = ' Australia/darwin ', ' (GMt+10:00) Brisbane ' = ' australia/brisbane ', ' (gmt+10:00) Canberra ' = ' Australia/sydney ', ' (gmt+10:00) Guam ' = ' Pacific/guam ', ' (gmt+10:00) Hobart ' = ' australia/hobart ', ' (gmt+10:00) Melbourne ' = ' Australia/sydney ', ' (gmt+ 10:00AM) Port Moresby ' = ' pacific/guam ', ' (gmt+10:00) Sydney ' = ' Australia/sydney ', ' (gmt+10:00) vlapostok ' = ' A Sia/vlapostok ', ' (gmt+11:00) Magadan ' = ' Asia/magadan ', ' (gmt+11:00) New caledonia ' = ' Asia/magadan ', ' (gmt+ 11:00AM) Solomon is. ' + ' Asia/magadan ', ' (gmt+12:00) Auckland ' = ' pacific/auckland ', ' (gmt+12:00) Fiji ' = ' pacif Ic/fiji ', ' (gmt+12:00) Kamchatka ' = ' Pacific/fiji ', ' (gmt+12:00) Marshall is. ' + ' Pacific/fiji ', ' (gmt+12:00) Wel Lington ' = ' pacific/auckland ', ' (gmt+13:00) nuku\ ' alofa ' = ' Pacific/tongatapu ',);p Rint_r ($timezones);? >

Related recommendations:

PHP timestamp (UNIX) usage detailed

PHP Time Formatting parameters

PHP Time Date Tool constellation/Ganzhi/Zodiac

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.