Teleport public APIs

Timezone Resource

Detailed information of a timezone

Properties

  • iana_name IANATimezoneName(string) - IANA/Olson/tzdata database name for the timezone

Relations

  • tz:offsets resource: TimezoneOffsets - The time offsets of the timezone as of the specified time
  • tz:offsets-now resource: TimezoneOffsets - The time offsets of the timezone as of now

Example

{
    "_links": {
        "curies": [
            {
                "href": "https://developers.teleport.org/api/resources/Location/#!/relations/{rel}/", 
                "name": "location", 
                "templated": true
            }, 
            {
                "href": "https://developers.teleport.org/api/resources/City/#!/relations/{rel}/", 
                "name": "city", 
                "templated": true
            }, 
            {
                "href": "https://developers.teleport.org/api/resources/UrbanArea/#!/relations/{rel}/", 
                "name": "ua", 
                "templated": true
            }, 
            {
                "href": "https://developers.teleport.org/api/resources/Country/#!/relations/{rel}/", 
                "name": "country", 
                "templated": true
            }, 
            {
                "href": "https://developers.teleport.org/api/resources/Admin1Division/#!/relations/{rel}/", 
                "name": "a1", 
                "templated": true
            }, 
            {
                "href": "https://developers.teleport.org/api/resources/Timezone/#!/relations/{rel}/", 
                "name": "tz", 
                "templated": true
            }
        ], 
        "self": {
            "href": "https://api.teleport.org/api/timezones/iana:America%2FLos_Angeles/"
        }, 
        "tz:offsets": {
            "href": "https://api.teleport.org/api/timezones/iana:America%2FLos_Angeles/offsets/{?date}", 
            "templated": true
        }, 
        "tz:offsets-now": {
            "href": "https://api.teleport.org/api/timezones/iana:America%2FLos_Angeles/offsets/?date=2016-10-24T16:28:10Z"
        }
    }, 
    "iana_name": "America/Los_Angeles"
}