Syntax
array getTimezoneList( string api_key );
Parameters
api_key
(string)The key required to access the API. See Getting Started for more information.
Return Value
An array of timezones with their names.
Examples
The following code gets the list of all timezones that can be used in other methods.
$api = new Api($url, 'YOURAPIKEY');
$timezone_list = $api->invokeMethod('getTimezoneList');
$timezone_list = $api->invokeMethod('getTimezoneList');
{
"id": 1,
"method": "getTimezoneList",
"params": [
"YOURAPIKEY"
]
}
"id": 1,
"method": "getTimezoneList",
"params": [
"YOURAPIKEY"
]
}
{
"id": 1,
"result": [
{
"timezone": "Etc\/GMT+12",
"display_name": "(GMT-12:00) International Date Line West"
},
{
"timezone": "Pacific\/Midway",
"display_name": "(GMT-11:00) Midway Island, Samoa"
},
{
"timezone": "Pacific\/Honolulu",
"display_name": "(GMT-10:00) Hawaii"
},
{
"timezone": "America\/Anchorage",
"display_name": "(GMT-09:00) Alaska"
},
{
"timezone": "America\/Los_Angeles",
"display_name": "(GMT-08:00) Pacific Time (US & Canada)"
},
{
"timezone": "America\/Tijuana",
"display_name": "(GMT-08:00) Tijuana, Baja California"
},
{
"timezone": "America\/Phoenix",
"display_name": "(GMT-07:00) Arizona"
},
{
"timezone": "America\/Chihuahua",
"display_name": "(GMT-07:00) Chihuahua, La Paz, Mazatlan"
},
{
"timezone": "America\/Denver",
"display_name": "(GMT-07:00) Mountain Time (US & Canada)"
},
{
"timezone": "America\/Chicago",
"display_name": "(GMT-06:00) Central Time (US & Canada)"
},
{
"timezone": "America\/Mexico_City",
"display_name": "(GMT-06:00) Guadalajara, Mexico City, Monterrey"
},
{
"timezone": "America\/Guatemala",
"display_name": "(GMT-06:00) Saskatchewan"
},
{
"timezone": "America\/Bogota",
"display_name": "(GMT-05:00) Bogota, Lima, Quito, Rio Branco"
},
{
"timezone": "America\/New_York",
"display_name": "(GMT-05:00) Eastern Time (US & Canada)"
},
{
"timezone": "America\/Jamaica",
"display_name": "(GMT-05:00) Indiana (East)"
},
{
"timezone": "America\/Caracas",
"display_name": "(GMT-04:30) Caracas"
},
{
"timezone": "America\/Asuncion",
"display_name": "(GMT-04:00) Asuncion"
},
{
"timezone": "America\/Glace_Bay",
"display_name": "(GMT-04:00) Atlantic Time (Canada)"
},
{
"timezone": "America\/La_Paz",
"display_name": "(GMT-04:00) Georgetown, La Paz, San Juan"
},
{
"timezone": "America\/Manaus",
"display_name": "(GMT-04:00) Manaus"
},
{
"timezone": "America\/Santiago",
"display_name": "(GMT-04:00) Santiago"
},
{
"timezone": "America\/St_Johns",
"display_name": "(GMT-03:30) Newfoundland"
},
{
"timezone": "America\/Sao_Paulo",
"display_name": "(GMT-03:00) Brasilia"
},
{
"timezone": "America\/Argentina\/Buenos_Aires",
"display_name": "(GMT-03:00) Buenos Aires"
},
{
"timezone": "America\/Cayenne",
"display_name": "(GMT-03:00) Cayenne"
},
{
"timezone": "America\/Godthab",
"display_name": "(GMT-03:00) Greenland"
},
{
"timezone": "America\/Montevideo",
"display_name": "(GMT-03:00) Montevideo"
},
{
"timezone": "Atlantic\/South_Georgia",
"display_name": "(GMT-02:00) Mid-Atlantic"
},
{
"timezone": "Atlantic\/Azores",
"display_name": "(GMT-01:00) Azores"
},
{
"timezone": "Atlantic\/Cape_Verde",
"display_name": "(GMT-01:00) Cape Verde Is."
},
{
"timezone": "Africa\/Casablanca",
"display_name": "(GMT) Casablanca"
},
{
"timezone": "Etc\/UTC",
"display_name": "(GMT) Coordinated Universal Time"
},
{
"timezone": "Europe\/London",
"display_name": "(GMT) Greenwich Mean Time - Dublin, Edinburgh, Lisbon, London"
},
{
"timezone": "Africa\/Monrovia",
"display_name": "(GMT) Monrovia, Reykjavik"
},
{
"timezone": "Europe\/Berlin",
"display_name": "(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna"
},
{
"timezone": "Europe\/Belgrade",
"display_name": "(GMT+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague"
},
{
"timezone": "Europe\/Brussels",
"display_name": "(GMT+01:00) Brussels, Copenhagen, Madrid, Paris"
},
{
"timezone": "Europe\/Warsaw",
"display_name": "(GMT+01:00) Sarajevo, Skopje, Warsaw, Zagreb"
},
{
"timezone": "Africa\/Algiers",
"display_name": "(GMT+01:00) West Central Africa"
},
{
"timezone": "Africa\/Windhoek",
"display_name": "(GMT+01:00) Windhoek"
},
{
"timezone": "Asia\/Amman",
"display_name": "(GMT+02:00) Amman"
},
{
"timezone": "Europe\/Athens",
"display_name": "(GMT+02:00) Athens, Bucharest, Istanbul"
},
{
"timezone": "Asia\/Beirut",
"display_name": "(GMT+02:00) Beirut"
},
{
"timezone": "Africa\/Cairo",
"display_name": "(GMT+02:00) Cairo"
},
{
"timezone": "Asia\/Gaza",
"display_name": "(GMT+02:00) Gaza"
},
{
"timezone": "Africa\/Harare",
"display_name": "(GMT+02:00) Harare, Pretoria"
},
{
"timezone": "Europe\/Helsinki",
"display_name": "(GMT+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius"
},
{
"timezone": "Asia\/Jerusalem",
"display_name": "(GMT+02:00) Jerusalem"
},
{
"timezone": "Europe\/Minsk",
"display_name": "(GMT+02:00) Minsk"
},
{
"timezone": "Asia\/Baghdad",
"display_name": "(GMT+03:00) Baghdad"
},
{
"timezone": "Asia\/Kuwait",
"display_name": "(GMT+03:00) Kuwait, Riyadh"
},
{
"timezone": "Europe\/Moscow",
"display_name": "(GMT+03:00) Moscow, St. Petersburg, Volgograd"
},
{
"timezone": "Africa\/Nairobi",
"display_name": "(GMT+03:00) Nairobi"
},
{
"timezone": "Asia\/Tehran",
"display_name": "(GMT+03:30) Tehran"
},
{
"timezone": "Asia\/Muscat",
"display_name": "(GMT+04:00) Abu Dhabi, Muscat"
},
{
"timezone": "Asia\/Baku",
"display_name": "(GMT+04:00) Baku"
},
{
"timezone": "Asia\/Tbilisi",
"display_name": "(GMT+04:00) Tbilisi"
},
{
"timezone": "Asia\/Yerevan",
"display_name": "(GMT+04:00) Yerevan"
},
{
"timezone": "Asia\/Kabul",
"display_name": "(GMT+04:30) Kabul"
},
{
"timezone": "Asia\/Yekaterinburg",
"display_name": "(GMT+05:00) Ekaterinburg"
},
{
"timezone": "Asia\/Karachi",
"display_name": "(GMT+05:00) Islamabad, Karachi"
},
{
"timezone": "Asia\/Tashkent",
"display_name": "(GMT+05:00) Tashkent"
},
{
"timezone": "Asia\/Calcutta",
"display_name": "(GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi"
},
{
"timezone": "Asia\/Colombo",
"display_name": "(GMT+05:30) Sri Jayawardenepura"
},
{
"timezone": "Asia\/Katmandu",
"display_name": "(GMT+05:45) Kathmandu"
},
{
"timezone": "Asia\/Thimphu",
"display_name": "(GMT+06:00) Almaty, Bishkek, Thimphu"
},
{
"timezone": "Asia\/Dhaka",
"display_name": "(GMT+06:00) Astana, Dhaka"
},
{
"timezone": "Asia\/Novosibirsk",
"display_name": "(GMT+06:00) Novosibirsk"
},
{
"timezone": "Asia\/Rangoon",
"display_name": "(GMT+06:30) Yangon (Rangoon)"
},
{
"timezone": "Asia\/Bangkok",
"display_name": "(GMT+07:00) Bangkok, Hanoi, Jakarta"
},
{
"timezone": "Asia\/Krasnoyarsk",
"display_name": "(GMT+07:00) Krasnoyarsk"
},
{
"timezone": "Asia\/Hong_Kong",
"display_name": "(GMT+08:00) Beijing, Chongqing, Hong Kong, Urumqi"
},
{
"timezone": "Asia\/Irkutsk",
"display_name": "(GMT+08:00) Irkutsk, Ulaan Bataar"
},
{
"timezone": "Asia\/Kuala_Lumpur",
"display_name": "(GMT+08:00) Kuala Lumpur, Singapore"
},
{
"timezone": "Australia\/Perth",
"display_name": "(GMT+08:00) Perth"
},
{
"timezone": "Asia\/Taipei",
"display_name": "(GMT+08:00) Taipei"
},
{
"timezone": "Asia\/Tokyo",
"display_name": "(GMT+09:00) Osaka, Sapporo, Tokyo"
},
{
"timezone": "Asia\/Seoul",
"display_name": "(GMT+09:00) Seoul"
},
{
"timezone": "Asia\/Yakutsk",
"display_name": "(GMT+09:00) Yakutsk"
},
{
"timezone": "Australia\/Adelaide",
"display_name": "(GMT+09:30) Adelaide"
},
{
"timezone": "Australia\/Darwin",
"display_name": "(GMT+09:30) Darwin"
},
{
"timezone": "Australia\/Brisbane",
"display_name": "(GMT+10:00) Brisbane"
},
{
"timezone": "Australia\/Sydney",
"display_name": "(GMT+10:00) Canberra, Melbourne, Sydney"
},
{
"timezone": "Pacific\/Guam",
"display_name": "(GMT+10:00) Guam, Port Moresby"
},
{
"timezone": "Australia\/Hobart",
"display_name": "(GMT+10:00) Hobart"
},
{
"timezone": "Asia\/Vladivostok",
"display_name": "(GMT+10:00) Vladivostok"
},
{
"timezone": "Asia\/Magadan",
"display_name": "(GMT+11:00) Magadan, Solomon Is., New Caledonia"
},
{
"timezone": "Pacific\/Auckland",
"display_name": "(GMT+12:00) Auckland, Wellington"
},
{
"timezone": "Pacific\/Fiji",
"display_name": "(GMT+12:00) Fiji, Kamchatka, Marshall Is."
},
{
"timezone": "Pacific\/Tongatapu",
"display_name": "(GMT+13:00) Nuku'alofa"
}
],
"error": null
}
"id": 1,
"result": [
{
"timezone": "Etc\/GMT+12",
"display_name": "(GMT-12:00) International Date Line West"
},
{
"timezone": "Pacific\/Midway",
"display_name": "(GMT-11:00) Midway Island, Samoa"
},
{
"timezone": "Pacific\/Honolulu",
"display_name": "(GMT-10:00) Hawaii"
},
{
"timezone": "America\/Anchorage",
"display_name": "(GMT-09:00) Alaska"
},
{
"timezone": "America\/Los_Angeles",
"display_name": "(GMT-08:00) Pacific Time (US & Canada)"
},
{
"timezone": "America\/Tijuana",
"display_name": "(GMT-08:00) Tijuana, Baja California"
},
{
"timezone": "America\/Phoenix",
"display_name": "(GMT-07:00) Arizona"
},
{
"timezone": "America\/Chihuahua",
"display_name": "(GMT-07:00) Chihuahua, La Paz, Mazatlan"
},
{
"timezone": "America\/Denver",
"display_name": "(GMT-07:00) Mountain Time (US & Canada)"
},
{
"timezone": "America\/Chicago",
"display_name": "(GMT-06:00) Central Time (US & Canada)"
},
{
"timezone": "America\/Mexico_City",
"display_name": "(GMT-06:00) Guadalajara, Mexico City, Monterrey"
},
{
"timezone": "America\/Guatemala",
"display_name": "(GMT-06:00) Saskatchewan"
},
{
"timezone": "America\/Bogota",
"display_name": "(GMT-05:00) Bogota, Lima, Quito, Rio Branco"
},
{
"timezone": "America\/New_York",
"display_name": "(GMT-05:00) Eastern Time (US & Canada)"
},
{
"timezone": "America\/Jamaica",
"display_name": "(GMT-05:00) Indiana (East)"
},
{
"timezone": "America\/Caracas",
"display_name": "(GMT-04:30) Caracas"
},
{
"timezone": "America\/Asuncion",
"display_name": "(GMT-04:00) Asuncion"
},
{
"timezone": "America\/Glace_Bay",
"display_name": "(GMT-04:00) Atlantic Time (Canada)"
},
{
"timezone": "America\/La_Paz",
"display_name": "(GMT-04:00) Georgetown, La Paz, San Juan"
},
{
"timezone": "America\/Manaus",
"display_name": "(GMT-04:00) Manaus"
},
{
"timezone": "America\/Santiago",
"display_name": "(GMT-04:00) Santiago"
},
{
"timezone": "America\/St_Johns",
"display_name": "(GMT-03:30) Newfoundland"
},
{
"timezone": "America\/Sao_Paulo",
"display_name": "(GMT-03:00) Brasilia"
},
{
"timezone": "America\/Argentina\/Buenos_Aires",
"display_name": "(GMT-03:00) Buenos Aires"
},
{
"timezone": "America\/Cayenne",
"display_name": "(GMT-03:00) Cayenne"
},
{
"timezone": "America\/Godthab",
"display_name": "(GMT-03:00) Greenland"
},
{
"timezone": "America\/Montevideo",
"display_name": "(GMT-03:00) Montevideo"
},
{
"timezone": "Atlantic\/South_Georgia",
"display_name": "(GMT-02:00) Mid-Atlantic"
},
{
"timezone": "Atlantic\/Azores",
"display_name": "(GMT-01:00) Azores"
},
{
"timezone": "Atlantic\/Cape_Verde",
"display_name": "(GMT-01:00) Cape Verde Is."
},
{
"timezone": "Africa\/Casablanca",
"display_name": "(GMT) Casablanca"
},
{
"timezone": "Etc\/UTC",
"display_name": "(GMT) Coordinated Universal Time"
},
{
"timezone": "Europe\/London",
"display_name": "(GMT) Greenwich Mean Time - Dublin, Edinburgh, Lisbon, London"
},
{
"timezone": "Africa\/Monrovia",
"display_name": "(GMT) Monrovia, Reykjavik"
},
{
"timezone": "Europe\/Berlin",
"display_name": "(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna"
},
{
"timezone": "Europe\/Belgrade",
"display_name": "(GMT+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague"
},
{
"timezone": "Europe\/Brussels",
"display_name": "(GMT+01:00) Brussels, Copenhagen, Madrid, Paris"
},
{
"timezone": "Europe\/Warsaw",
"display_name": "(GMT+01:00) Sarajevo, Skopje, Warsaw, Zagreb"
},
{
"timezone": "Africa\/Algiers",
"display_name": "(GMT+01:00) West Central Africa"
},
{
"timezone": "Africa\/Windhoek",
"display_name": "(GMT+01:00) Windhoek"
},
{
"timezone": "Asia\/Amman",
"display_name": "(GMT+02:00) Amman"
},
{
"timezone": "Europe\/Athens",
"display_name": "(GMT+02:00) Athens, Bucharest, Istanbul"
},
{
"timezone": "Asia\/Beirut",
"display_name": "(GMT+02:00) Beirut"
},
{
"timezone": "Africa\/Cairo",
"display_name": "(GMT+02:00) Cairo"
},
{
"timezone": "Asia\/Gaza",
"display_name": "(GMT+02:00) Gaza"
},
{
"timezone": "Africa\/Harare",
"display_name": "(GMT+02:00) Harare, Pretoria"
},
{
"timezone": "Europe\/Helsinki",
"display_name": "(GMT+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius"
},
{
"timezone": "Asia\/Jerusalem",
"display_name": "(GMT+02:00) Jerusalem"
},
{
"timezone": "Europe\/Minsk",
"display_name": "(GMT+02:00) Minsk"
},
{
"timezone": "Asia\/Baghdad",
"display_name": "(GMT+03:00) Baghdad"
},
{
"timezone": "Asia\/Kuwait",
"display_name": "(GMT+03:00) Kuwait, Riyadh"
},
{
"timezone": "Europe\/Moscow",
"display_name": "(GMT+03:00) Moscow, St. Petersburg, Volgograd"
},
{
"timezone": "Africa\/Nairobi",
"display_name": "(GMT+03:00) Nairobi"
},
{
"timezone": "Asia\/Tehran",
"display_name": "(GMT+03:30) Tehran"
},
{
"timezone": "Asia\/Muscat",
"display_name": "(GMT+04:00) Abu Dhabi, Muscat"
},
{
"timezone": "Asia\/Baku",
"display_name": "(GMT+04:00) Baku"
},
{
"timezone": "Asia\/Tbilisi",
"display_name": "(GMT+04:00) Tbilisi"
},
{
"timezone": "Asia\/Yerevan",
"display_name": "(GMT+04:00) Yerevan"
},
{
"timezone": "Asia\/Kabul",
"display_name": "(GMT+04:30) Kabul"
},
{
"timezone": "Asia\/Yekaterinburg",
"display_name": "(GMT+05:00) Ekaterinburg"
},
{
"timezone": "Asia\/Karachi",
"display_name": "(GMT+05:00) Islamabad, Karachi"
},
{
"timezone": "Asia\/Tashkent",
"display_name": "(GMT+05:00) Tashkent"
},
{
"timezone": "Asia\/Calcutta",
"display_name": "(GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi"
},
{
"timezone": "Asia\/Colombo",
"display_name": "(GMT+05:30) Sri Jayawardenepura"
},
{
"timezone": "Asia\/Katmandu",
"display_name": "(GMT+05:45) Kathmandu"
},
{
"timezone": "Asia\/Thimphu",
"display_name": "(GMT+06:00) Almaty, Bishkek, Thimphu"
},
{
"timezone": "Asia\/Dhaka",
"display_name": "(GMT+06:00) Astana, Dhaka"
},
{
"timezone": "Asia\/Novosibirsk",
"display_name": "(GMT+06:00) Novosibirsk"
},
{
"timezone": "Asia\/Rangoon",
"display_name": "(GMT+06:30) Yangon (Rangoon)"
},
{
"timezone": "Asia\/Bangkok",
"display_name": "(GMT+07:00) Bangkok, Hanoi, Jakarta"
},
{
"timezone": "Asia\/Krasnoyarsk",
"display_name": "(GMT+07:00) Krasnoyarsk"
},
{
"timezone": "Asia\/Hong_Kong",
"display_name": "(GMT+08:00) Beijing, Chongqing, Hong Kong, Urumqi"
},
{
"timezone": "Asia\/Irkutsk",
"display_name": "(GMT+08:00) Irkutsk, Ulaan Bataar"
},
{
"timezone": "Asia\/Kuala_Lumpur",
"display_name": "(GMT+08:00) Kuala Lumpur, Singapore"
},
{
"timezone": "Australia\/Perth",
"display_name": "(GMT+08:00) Perth"
},
{
"timezone": "Asia\/Taipei",
"display_name": "(GMT+08:00) Taipei"
},
{
"timezone": "Asia\/Tokyo",
"display_name": "(GMT+09:00) Osaka, Sapporo, Tokyo"
},
{
"timezone": "Asia\/Seoul",
"display_name": "(GMT+09:00) Seoul"
},
{
"timezone": "Asia\/Yakutsk",
"display_name": "(GMT+09:00) Yakutsk"
},
{
"timezone": "Australia\/Adelaide",
"display_name": "(GMT+09:30) Adelaide"
},
{
"timezone": "Australia\/Darwin",
"display_name": "(GMT+09:30) Darwin"
},
{
"timezone": "Australia\/Brisbane",
"display_name": "(GMT+10:00) Brisbane"
},
{
"timezone": "Australia\/Sydney",
"display_name": "(GMT+10:00) Canberra, Melbourne, Sydney"
},
{
"timezone": "Pacific\/Guam",
"display_name": "(GMT+10:00) Guam, Port Moresby"
},
{
"timezone": "Australia\/Hobart",
"display_name": "(GMT+10:00) Hobart"
},
{
"timezone": "Asia\/Vladivostok",
"display_name": "(GMT+10:00) Vladivostok"
},
{
"timezone": "Asia\/Magadan",
"display_name": "(GMT+11:00) Magadan, Solomon Is., New Caledonia"
},
{
"timezone": "Pacific\/Auckland",
"display_name": "(GMT+12:00) Auckland, Wellington"
},
{
"timezone": "Pacific\/Fiji",
"display_name": "(GMT+12:00) Fiji, Kamchatka, Marshall Is."
},
{
"timezone": "Pacific\/Tongatapu",
"display_name": "(GMT+13:00) Nuku'alofa"
}
],
"error": null
}