Php: How to output the list of global time zones _ PHP Tutorial

Source: Internet
Author: User
Tags cairo time zones timezones
Php outputs the list of global time zones. Php outputs the list of global time zones as follows: 1234567891011121314151617181920212223242526272829303132333435363738394 php outputs the list of global time zones

The specific implementation method is as follows:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

70

71

72

73

74

75

76

77

78

79

80

81

82

83

84

85

86

87

88

89

90

91

92

93

94

95

96

97

98

99

100

101

102

103

104

105

106

107

108

109

110

111

112

113

114

115

116

117

118

119

120

121

122

123

124

125

126

127

128

129

130

131

132

133

134

135

136

137

138

139

140

141

142

143

144

145

146

147

$ Timezones =

Array (

'(GMT-12: 00) International Date Line West' => 'Pacific/Wake ',

'(GMT-11: 00) Midway Island' => 'pacpacific/Apia ',

'(GMT-11: 00) Samoa' => 'Pacific/apa ',

'(GMT-10: 00) Hawaii' => 'Pacific/Honolulu ',

'(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) chiyunhua' => 'America/chiyunhua ',

'(GMT-07: 00) La Paz' => 'America/chibaihu ',

'(GMT-07: 00) Mazatlan' => 'America/chibaihu ',

'(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/icoico_city ',

'(GMT-06: 00) Mico City' => 'America/mico_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/Halifax ',

'(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) buanost' => 'America/Argentina/Buenos_Aires ',

'(GMT-03: 00) Georgetown' => 'America/Argentina/buenos_wn ',

'(GMT-03: 00) Greenland' => 'America/godthab ',

'(GMT-02: 00) Mid-Atlantic' => 'America/Noronha ',

'(GMT-01: 00) Azores' => 'Atlanta/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/Casablanca ',

'(GMT +) Amsterdam' => 'Europe/Berlin ',

'(GMT +) belgrad' => 'Europe/belgrad ',

'(GMT +) Berlin' => 'Europe/berline ',

'(GMT +) Bern' => 'Europe/Berlin ',

'(GMT +) Bratislava' => 'Europe/belgrad ',

'(GMT +) Brussels' => 'Europe/Paris ',

'(GMT +) Budapest' => 'Europe/belgrad ',

'(GMT +) Copenhagen' => 'Europe/Paris ',

'(GMT +) Ljubljana' => 'Europe/belgrad ',

'(GMT +) Madrid' => 'Europe/Paris ',

'(GMT +) Paris' => 'Europe/Paris ',

'(GMT +) prag' => 'Europe/belgrad ',

'(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 +) West Central 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 +) Kyiv' => '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/Moscow ',

'(GMT +) Nairobi' => 'Africa/Nairobi ',

'(GMT + 0: 00) Riyadh' => 'Asia/Riyadh ',

'(GMT +) 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 +) Yerevan' => 'Asia/Tbilisi ',

'(GMT +) 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) mumba' => 'Asia/Calcutta ',

'(GMT + 05:30) New Delhi' => 'Asia/Calcutta ',

'(GMT + 05:45) Kathmandu' => 'Asia/Katmandu ',

'(GMT +) Almaty' => 'Asia/Novosibirsk ',

'(GMT + 06:00) Astana' => 'Asia/Dhaka ',

'(GMT + 06:00) Dhaka' => 'Asia/Dhaka ',

'(GMT +) Novosibirsk' => 'Asia/Novosibirsk ',

'(GMT + 06:00) Sri Jayawardenepura' => 'Asia/compos ',

'(GMT +) Rangoon' => 'Asia/Rangoon ',

'(GMT +) Bangkok' => 'Asia/Bangkok ',

'(GMT +) Hanoi' => 'Asia/Bangkok ',

'(GMT +) Jakarta' => 'Asia/Bangkok ',

'(GMT + ',

'(GMT + 08:00) 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 +) Osaka' => 'Asia/Tokyo ',

'(GMT +) Sapporo' => 'Asia/Tokyo ',

'(GMT + 09:00) Seoul' => 'Asia/Seoul ',

'(GMT +) Tokyo' => 'Asia/Tokyo ',

'(GMT +) Yakutsk' => 'Asia/Yakutsk ',

'(GMT +) Adelide' => 'Australia/Adelide ',

'(GMT +) Darwin' => 'Australia/Darwin ',

'(GMT +) Brisbane' => 'Australia/Brisbane ',

'(GMT +) Canberra' => 'Australia/Sydney ',

'(GMT + 10: 00) Guam' => 'Pacific/Guam ',

'(GMT +) Hobart' => 'Australia/Hobart ',

'(GMT +) Melbourne' => 'Australia/Sydney ',

'(GMT +) Port Moresby' => 'Pacific/Guam ',

'(GMT + 10: 00) sydonnel' => 'Australia/sydonnel ',

'(GMT +) Vlapostok' => 'Asia/Vlapostok ',

'(GMT +) Magadan' => 'Asia/magada ',

'(GMT + 11: 00) New Caledonia' => 'Asia/magada ',

'(GMT + 11: 00) Solomon Is.' => 'Asia/magada ',

'(GMT +) Auckland' => 'pacpacific/Auckland ',

'(GMT +) Fiji' => 'Pacific/Fiji ',

'(GMT +) Kamchatka' => 'Pacific/Fiji ',

'(GMT +) Marshall Is.' => 'Pacific/Fiji ',

'(GMT +) Welington' => 'pacpacific/Auckland ',

'(GMT + 13:00) Nuku \ 'alofa' => 'Pacific/Tongatapu ',

);

Print_r ($ timezones );

?>

The specific implementation method of explain is as follows: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 28 29 30 31 32 33 34 35 36 38 39 4...

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.