Time Zone

Time Zone

Resource: Time Zone ( /api/timezone )

Allows the retrieval of information about a time zone.

Root Relation: TimeZone

This resource supports the following methods: GET

 

Methods

GET


Retrieves information for a time zone.

Status Codes

These are the expected status codes returned by the service. In addition, some other status codes may be returned if either an internal error occurs or there is an authentication issue (such as an expired OAuth token).

Status

Description

200 - OK

If then request completed successfully.

403 - Forbidden

Returned if the timezone parameter is not supplied.

 

Example - GET

 

Retrieves information for a time zone.

Request Headers

Key

Value

Description

Accept

application/json

 

Request Parameters

Key

Value

Description

id

America/New_York

The ID of the time zone (IANA time zone key, or windows timezone ID).

Response Headers

Key

Value

Description

Content-Type

application/json; charset=utf-8

 

Response Body

{ "UnresolvedTimeZoneId": "America/New_York", "Resolved": true, "TimeZoneId": "Eastern Standard Time", "UtcOffset": "-05:00:00", "CurrentTimeInZone": "2015-12-15T13:40:19Z" }

Status Code

200 - OK