How php outputs the list of global time zones

Source: Internet
Author: User
Tags cairo time zones timezones
This article mainly introduces how php outputs the list of global time zones. It defines an array variable to store information about each time zone in the world. It has some reference value. For more information, see

This article mainly introduces how php outputs the list of global time zones. It defines an array variable to store information about each time zone in the world. It has some reference value. For more information, see

This example describes how php outputs the list of global time zones. Share it with you for your reference. The specific implementation method is as follows:

<? Php $ timezones = array ('(GMT-12: 00) International Date Line West' => 'Pacific/Wake', '(GMT-11: 00) midway Island '=> 'Pacific/api',' (GMT-11: 00) Samoa '=> 'Pacific/api',' (GMT-10: 00) hawaii '=> 'Pacific/honolu',' (GMT-09: 00) Alaska '=> 'America/Anchorage',' (GMT-08: 00) Pacific Time (US & Canada ); tijuana '=> 'America/Los_Angeles', '(GMT-07: 00) Arizona' => 'America/Phoenix ',' (GMT-07: 00) Chihuahu A' => 'America/chiyunhua ',' (GMT-07: 00) La Paz' => 'America/chiyunhua ',' (GMT-07: 00) mazatlan '=> 'America/chianchua', '(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/moico_city', '(GMT-06: 00) moico City' => 'America/moico_city ', '(GMT-06: 00) Monterrey' => 'America/icoico_city ',' (GMT-06: 00) Saskatchewan '=> 'America/Regina', '(GMT-05: 00) bogota '=> 'America/Bogota', '(GMT-05: 00) Eastern Time (US & Canada)' => 'America/New_York ',' (GMT-05: 00) indiana (East) '=> 'America/Indiana/Indianapolis', '(GMT-05: 00) lima' => 'America/Bogota', '(GMT-05: 00) quito '=> 'America/Bogota', '(GMT-04: 00) Atlanta Time (Canada)' => 'America/H Alifax ',' (GMT-04: 00) Caracas '=> 'America/caracas',' (GMT-04: 00) La Paz' => 'America/Caracas ',' (GMT-04: 00) Santiago '=> 'America/Santiago', '(GMT-03: 30) newfoundland' => 'America/St_Johns', '(GMT-03: 00) brasilia '=> 'America/Sao_Paulo', '(GMT-03: 00) bunos comment' => 'America/Argentina/buenos_comment ',' (GMT-03: 00) georgetown '=> 'America/Argentina/buenos_gate',' (GMT-03: 00) Greenland '=> 'America /Godthab ',' (GMT-02: 00) Mid-Atlantic '=> 'America/Noronha', '(GMT-01: 00) Azores' => 'Atlantic/Azores ', '( GMT-01: 00) Cape Verde Is. '=> 'atlanta/cape_verde',' (GMT) casablanca' => 'Africa/casablanca', '(GMT) edinburgh' => 'Europe/London ', '(GMT) Greenwich Mean Time: Dublin' => 'Europe/London', '(GMT) Lisbon' => 'Europe/London ',' (GMT) london '=> 'Europe/London', '(GMT) Monrovia' => 'Africa/Casabl Anca ',' (GMT +) Amsterdam '=> 'Europe/Berlin',' (GMT +) Belgrade '=> 'Europe/Belgrade ', '(GMT +) Berlin' => 'Europe/Berlin',' (GMT +) bern' => 'Europe/Berlin', '(GMT +) bratislava '=> 'Europe/Belgrade', '(GMT +) Brussels' => 'Europe/Paris ',' (GMT +) budapest '=> 'Europe/Belgrade', '(GMT +) Copenhagen' => 'Europe/Paris ',' (GMT +) ljubljana '=> 'Europe/belgrad ', '(GMT +) Madrid' => 'Europe/Paris ',' (GMT +) Paris '=> 'Europe/Paris', '(GMT +) prague '=> 'Europe/Belgrade', '(GMT +) Rome' => 'Europe/Berlin', '(GMT +) sarajevo '=> 'Europe/Sarajevo', '(GMT +) Skopje' => 'Europe/Sarajevo ',' (GMT +) stockhol' => 'Europe/Berlin', '(GMT +) Vienna' => 'Europe/Berlin', '(GMT +) warsaw '=> 'Europe/Sarajevo', '(GMT + 0: 00) West Centr Al Africa '=> 'Africa/Lagos', '(GMT +) zagreb' => 'Europe/Sarajevo', '(GMT +) athens '=> 'Europe/Istanbul', '(GMT +) Bucharest' => 'Europe/Bucharest ',' (GMT +) cairo '=> 'Africa/Cairo', '(GMT +) harare' => 'Africa/Johannesburg', '(GMT +) helsinki '=> 'Europe/helsinki',' (GMT +) Istanbul '=> 'Europe/Istanbul', '(GMT +) jerusalem '=> 'Asia/Jerusalem', '(GMT +) Kyi V '=> 'Europe/helsinki',' (GMT +) Minsk '=> 'Europe/Istanbul', '(GMT +) pretoria '=> 'Africa/Johannesburg', '(GMT +) Riga' => 'Europe/helsinki', '(GMT +) sofia '=> 'Europe/helsinki',' (GMT +) tallinn' => 'Europe/helsinki', '(GMT +) vilnius '=> 'Europe/helsinki',' (GMT +) Baghdad '=> 'Asia/Baghdad', '(GMT +) kuwait '=> 'Asia/Riyadh', '(GMT +) Moscow' => 'Europe/M Oscow', '(GMT +) Nairobi' => 'Africa/Nairobi ',' (GMT +) Riyadh '=> 'Asia/Riyadh ', '(GMT + 0: 00) St. petersburg '=> 'Europe/Moscow',' (GMT +) Volgograd '=> 'Europe/Moscow',' (GMT +) tehran '=> 'Asia/Tehran', '(GMT +) Abu Dhabi' => 'Asia/Muscat ',' (GMT +) baku '=> 'Asia/Tbilisi', '(GMT +) Muscat' => 'Asia/Muscat ',' (GMT +) tbilisi '=> 'Asia/Tbilisi', '(GMT +) Yerev An '=> 'Asia/Tbilisi', '(GMT +) Kabul' => 'Asia/Kabul ',' (GMT +) 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) mumba' => 'Asia/Calcutta ',' (GMT + 05:30) New delhi' => 'Asia/Calc Utta ',' (GMT + 05:45) Kathmandu '=> 'Asia/Katmandu', '(GMT + 06:00) Almaty' => 'Asia/Novosibirsk ', '(GMT + 06:00) Astana' => 'Asia/Dhaka ',' (GMT + 06:00) Dhaka '=> 'Asia/Dhaka', '(GMT + 06:00) novosibirsk '=> 'Asia/Novosibirsk', '(GMT + 06:00) Sri Jayawardenepura' => 'Asia/MBO ',' (GMT + 06:30) rangoon '=> 'Asia/Rangoon',' (GMT +) Bangkok '=> 'Asia/Bangkok', '(GMT +) hanoi '=> 'Asia/bangkok',' (GMT + 0) Jakarta '=> 'Asia/Bangkok', '(GMT +) craknarsk' => 'Asia/craknarsk ',' (GMT +) beijing '=> 'Asia/Hong_Kong', '(GMT + 08:00) Chongqing' => 'Asia/Hong_Kong ',' (GMT + 08:00) hong Kong '=> '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', '(GMT + 08:00) Ulaan Bataar' => 'Asia/Irkutsk ',' (GMT + 08:00) urumqi '=> 'Asia/Hong_Kong', '(GMT + 09:00) 1_ka' => 'Asia/tog', '(GMT + 09:00) sapporo '=> 'Asia/Tokyo', '(GMT + 09:00) Seoul' => 'Asia/Seoul ',' (GMT + 09:00) tokyo '=> 'Asia/Tokyo', '(GMT +) Yakutsk' => 'Asia/Yakutsk ',' (GMT +) adelide '=> 'Australia/adelide', '(GMT +) darwin' => 'Australia/darwin', '(GMT +) Brisbane' => 'Australia/brisbane', '(GMT +) Canberra' => 'Australia/sydonnel', '(GMT +) guam '=> 'Pacific/guam',' (GMT +) Hobart '=> 'Australia/Hobart', '(GMT +) melbourne '=> 'Australia/sydonnel',' (GMT +) Port Moresby '=> 'Pacific/guam',' (GMT +) sydrif' => 'Australia/sydrif', '(GMT +) Vlapostok' => 'Asia/Vlapostok ',' (GMT +) magadan '=> 'Asia/Magadan ', '(GMT +) New Caledonia' => 'Asia/magada', '(GMT +) Solomon Is. '=> 'Asia/Magadan', '(GMT +) Auckland' => 'Pacific/Auckland ',' (GMT +) fiji '=> 'Pacific/fiji',' (GMT +) Kamchatka '=> 'Pacific/Fiji', '(GMT +) Marshall Is. '=> 'pacpacific/Fiji', '(GMT +) welline' => 'pacpacific/Auckland', '(GMT +) nuku \ 'ofa' => 'Pacific/Tongatapu ',); print_r ($ timezones);?>

I hope this article will help you with php programming.

,

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.