Get timezones

Description

Retrieves the supported timezones

HTTP Method

GET

Path

/common/timezone/@all

Authentication

Does not require user authentication.

Parameters

Table 23.  Parameters for " Get timezones "

NameTypeValue TypeDescription
countryIso2CodeQUERYString(optional) retrieves the list having the relevant timezones, for provided country, sorted first in the list

Error Codes

150000 ( Common )

An unhandled exception has occured.

Response Schema

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xs:schema elementFormDefault="qualified" version="1.0" targetNamespace="http://xsd.poken.com" xmlns:xs="http://www.w3.org/2001/XMLSchema">

  <xs:element name="timezones">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="timezone" nillable="true" minOccurs="0" maxOccurs="unbounded">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="id" type="xs:long"/>
              <xs:element name="code" type="xs:string"/>
              <xs:element name="gmt" type="xs:string"/>
              <xs:element name="name" type="xs:string"/>
              <xs:element name="countrySorted" type="xs:boolean" minOccurs="0"/>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>

Sample Response

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<timezones xmlns="http://xsd.poken.com">
  <timezone>
    <id>2</id>
    <code>America/Adak</code>
    <gmt>GMT-10:00</gmt>
    <name>Adak, Aleutian, Atka</name>
    <countrySorted>true</countrySorted>
  </timezone>
  <timezone>
    <id>3</id>
    <code>Etc/GMT+10</code>
    <gmt>GMT-10:00</gmt>
    <name>Hawaii, Honolulu, Tahiti</name>
    <countrySorted>true</countrySorted>
  </timezone>
  <timezone>
    <id>6</id>
    <code>US/Alaska</code>
    <gmt>GMT-09:00</gmt>
    <name>Alaska, Anchorage, Nome</name>
    <countrySorted>true</countrySorted>
  </timezone>
  <timezone>
    <id>8</id>
    <code>US/Pacific</code>
    <gmt>GMT-08:00</gmt>
    <name>Pacific (Us &amp; Canada)</name>
    <countrySorted>true</countrySorted>
  </timezone>
  <timezone>
    <id>9</id>
    <code>US/Arizona</code>
    <gmt>GMT-07:00</gmt>
    <name>Arizona, Phoenix</name>
    <countrySorted>true</countrySorted>
  </timezone>
  <timezone>
    <id>10</id>
    <code>US/Mountain</code>
    <gmt>GMT-07:00</gmt>
    <name>Mountain Time (US &amp; Canada)</name>
    <countrySorted>true</countrySorted>
  </timezone>
  <timezone>
    <id>14</id>
    <code>US/Central</code>
    <gmt>GMT-06:00</gmt>
    <name>Central Time (Us &amp; Canada)</name>
    <countrySorted>true</countrySorted>
  </timezone>
  <timezone>
    <id>16</id>
    <code>US/Eastern</code>
    <gmt>GMT-05:00</gmt>
    <name>Eastern Time (Us &amp; Canada)</name>
    <countrySorted>true</countrySorted>
  </timezone>
  <timezone>
    <id>1</id>
    <code>Etc/GMT+11</code>
    <gmt>GMT-11:00</gmt>
    <name>Apia, Midway, Pago Pago, Samoa</name>
  </timezone>
</timezones>