Time Zones

A timezone is a region of uniform standard time.

XML Schema:

Resource Definition

Note

This resource can be searched, allowing to you to access a filtered set of data. See our Searching The G API documentation for details on how to query specific fields and the operators available.

Fields

Name

Type

Description

id read-only

String

href read-only

Field

code required

String

A unique code used to classify the resource

gmt_offset required

Decimal

The offset from Greenwich Mean Time

dst_offset required

Decimal

The offset from Greenwich Mean Time during Daylight Savings

date_created

Datetime

The time when the resource was created, in the standard Dates & Times.

date_last_modified

Datetime

The time when the resource was last modified, in the standard Dates & Times.

Get a Timezone

GET /timezones/(timezone_id)

Request

curl -H "X-Application-Key: YOUR_APPLICATION_KEY" 
https://rest.gadventures.com/timezones/194

Response

{
  "id": "194",
  "href": "https://rest.gadventures.com/timezones/194",
  "code": "America/Toronto",
  "gmt_offset": "-5.0",
  "dst_offset": "-4.0",
  "date_created": "2014-05-05T18:09:41Z",
  "date_last_modified": "2014-05-05T18:09:41Z"
}

List Timezones

GET /timezones

Request

curl -H "X-Application-Key: YOUR_APPLICATION_KEY" 
https://rest.gadventures.com/timezones/

Response

{
  "count": 418,
  "max_per_page": 50,
  "current_page": 1,
  "links": [
    {
      "href": "https://rest.gadventures.com/timezones?max_per_page=50&page=2",
      "rel": "next"
    }
  ],
  "results": [
    {
      "id": "1",
      "href": "https://rest.gadventures.com/timezones/1",
      "code": "Africa/Abidjan"
    },
    {
      "id": "2",
      "href": "https://rest.gadventures.com/timezones/2",
      "code": "Africa/Accra"
    },
    {
      "id": "3",
      "href": "https://rest.gadventures.com/timezones/3",
      "code": "Africa/Addis_Ababa"
    },
    {
      "id": "4",
      "href": "https://rest.gadventures.com/timezones/4",
      "code": "Africa/Algiers"
    },
    {
      "id": "5",
      "href": "https://rest.gadventures.com/timezones/5",
      "code": "Africa/Asmara"
    },
    {
      "id": "6",
      "href": "https://rest.gadventures.com/timezones/6",
      "code": "Africa/Bamako"
    },
    {
      "id": "7",
      "href": "https://rest.gadventures.com/timezones/7",
      "code": "Africa/Bangui"
    },
    {
      "id": "8",
      "href": "https://rest.gadventures.com/timezones/8",
      "code": "Africa/Banjul"
    },
    {
      "id": "9",
      "href": "https://rest.gadventures.com/timezones/9",
      "code": "Africa/Bissau"
    },
    {
      "id": "10",
      "href": "https://rest.gadventures.com/timezones/10",
      "code": "Africa/Blantyre"
    },
    {
      "id": "11",
      "href": "https://rest.gadventures.com/timezones/11",
      "code": "Africa/Brazzaville"
    },
    {
      "id": "12",
      "href": "https://rest.gadventures.com/timezones/12",
      "code": "Africa/Bujumbura"
    },
    {
      "id": "13",
      "href": "https://rest.gadventures.com/timezones/13",
      "code": "Africa/Cairo"
    },
    {
      "id": "14",
      "href": "https://rest.gadventures.com/timezones/14",
      "code": "Africa/Casablanca"
    },
    {
      "id": "15",
      "href": "https://rest.gadventures.com/timezones/15",
      "code": "Africa/Ceuta"
    },
    {
      "id": "16",
      "href": "https://rest.gadventures.com/timezones/16",
      "code": "Africa/Conakry"
    },
    {
      "id": "17",
      "href": "https://rest.gadventures.com/timezones/17",
      "code": "Africa/Dakar"
    },
    {
      "id": "18",
      "href": "https://rest.gadventures.com/timezones/18",
      "code": "Africa/Dar_es_Salaam"
    },
    {
      "id": "19",
      "href": "https://rest.gadventures.com/timezones/19",
      "code": "Africa/Djibouti"
    },
    {
      "id": "20",
      "href": "https://rest.gadventures.com/timezones/20",
      "code": "Africa/Douala"
    },
    {
      "id": "21",
      "href": "https://rest.gadventures.com/timezones/21",
      "code": "Africa/El_Aaiun"
    },
    {
      "id": "22",
      "href": "https://rest.gadventures.com/timezones/22",
      "code": "Africa/Freetown"
    },
    {
      "id": "23",
      "href": "https://rest.gadventures.com/timezones/23",
      "code": "Africa/Gaborone"
    },
    {
      "id": "24",
      "href": "https://rest.gadventures.com/timezones/24",
      "code": "Africa/Harare"
    },
    {
      "id": "25",
      "href": "https://rest.gadventures.com/timezones/25",
      "code": "Africa/Johannesburg"
    },
    {
      "id": "26",
      "href": "https://rest.gadventures.com/timezones/26",
      "code": "Africa/Juba"
    },
    {
      "id": "27",
      "href": "https://rest.gadventures.com/timezones/27",
      "code": "Africa/Kampala"
    },
    {
      "id": "28",
      "href": "https://rest.gadventures.com/timezones/28",
      "code": "Africa/Khartoum"
    },
    {
      "id": "29",
      "href": "https://rest.gadventures.com/timezones/29",
      "code": "Africa/Kigali"
    },
    {
      "id": "30",
      "href": "https://rest.gadventures.com/timezones/30",
      "code": "Africa/Kinshasa"
    },
    {
      "id": "31",
      "href": "https://rest.gadventures.com/timezones/31",
      "code": "Africa/Lagos"
    },
    {
      "id": "32",
      "href": "https://rest.gadventures.com/timezones/32",
      "code": "Africa/Libreville"
    },
    {
      "id": "33",
      "href": "https://rest.gadventures.com/timezones/33",
      "code": "Africa/Lome"
    },
    {
      "id": "34",
      "href": "https://rest.gadventures.com/timezones/34",
      "code": "Africa/Luanda"
    },
    {
      "id": "35",
      "href": "https://rest.gadventures.com/timezones/35",
      "code": "Africa/Lubumbashi"
    },
    {
      "id": "36",
      "href": "https://rest.gadventures.com/timezones/36",
      "code": "Africa/Lusaka"
    },
    {
      "id": "37",
      "href": "https://rest.gadventures.com/timezones/37",
      "code": "Africa/Malabo"
    },
    {
      "id": "38",
      "href": "https://rest.gadventures.com/timezones/38",
      "code": "Africa/Maputo"
    },
    {
      "id": "39",
      "href": "https://rest.gadventures.com/timezones/39",
      "code": "Africa/Maseru"
    },
    {
      "id": "40",
      "href": "https://rest.gadventures.com/timezones/40",
      "code": "Africa/Mbabane"
    },
    {
      "id": "41",
      "href": "https://rest.gadventures.com/timezones/41",
      "code": "Africa/Mogadishu"
    },
    {
      "id": "42",
      "href": "https://rest.gadventures.com/timezones/42",
      "code": "Africa/Monrovia"
    },
    {
      "id": "43",
      "href": "https://rest.gadventures.com/timezones/43",
      "code": "Africa/Nairobi"
    },
    {
      "id": "44",
      "href": "https://rest.gadventures.com/timezones/44",
      "code": "Africa/Ndjamena"
    },
    {
      "id": "45",
      "href": "https://rest.gadventures.com/timezones/45",
      "code": "Africa/Niamey"
    },
    {
      "id": "46",
      "href": "https://rest.gadventures.com/timezones/46",
      "code": "Africa/Nouakchott"
    },
    {
      "id": "47",
      "href": "https://rest.gadventures.com/timezones/47",
      "code": "Africa/Ouagadougou"
    },
    {
      "id": "48",
      "href": "https://rest.gadventures.com/timezones/48",
      "code": "Africa/Porto-Novo"
    },
    {
      "id": "49",
      "href": "https://rest.gadventures.com/timezones/49",
      "code": "Africa/Sao_Tome"
    },
    {
      "id": "50",
      "href": "https://rest.gadventures.com/timezones/50",
      "code": "Africa/Tripoli"
    }
  ]
}