PHP Output Global Time zone list Method _php Tutorial

Source: Internet
Author: User
Tags cairo time zones timezones

How PHP outputs the global list of time zones


The 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

21st

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 ' = ' pacific/apia ',

' (gmt-11:00) Samoa ' = ' Pacific/apia ',

' (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) 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_city ',

' (gmt-06:00) Mexico City ' = ' america/mexico_city ',

' (gmt-06:00) Monterrey ' = ' america/mexico_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) Atlantic 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) 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:00) Cape Verde is. ' = ' Atlantic/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+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 ',

' (gmt+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 ' = ' Africa/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 ' = ' Europe/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 ' = ' 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 ' = ' asia/muscat ',

' (gmt+04:00) Baku ' = ' asia/tbilisi ',

' (gmt+04:00) Muscat ' = ' asia/muscat ',

' (gmt+04:00) Tbilisi ' = ' 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 ' = ' 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/bangkok ',

' (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 ' = ' 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) 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:00) Port Moresby ' = ' pacific/guam ',

' (gmt+10:00) Sydney ' = ' Australia/sydney ',

' (gmt+10:00) Vladivostok ' = ' Asia/vladivostok ',

' (gmt+11:00) Magadan ' = ' Asia/magadan ',

' (gmt+11:00) New caledonia ' = ' Asia/magadan ',

' (gmt+11:00) Solomon is. ' = ' Asia/magadan ',

' (gmt+12:00) Auckland ' = ' Pacific/auckland ',

' (gmt+12:00) Fiji ' = ' Pacific/fiji ',

' (gmt+12:00) Kamchatka ' = ' Pacific/fiji ',

' (gmt+12:00) Marshall is. ' = ' Pacific/fiji ',

' (gmt+12:00) Wellington ' = ' Pacific/auckland ',

' (gmt+13:00) nuku\ ' alofa ' = ' Pacific/tongatapu ',

);

Print_r ($timezones);

?>

http://www.bkjia.com/PHPjc/977163.html www.bkjia.com true http://www.bkjia.com/PHPjc/977163.html techarticle the method of PHP output the list of the world's various time zones 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 3 4 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.