Teleport public APIs

TimezoneOffsets Resource

The time offsets of a timezone as of a specified time

Properties

  • base_offset_min TZOffsetMinutes(integer, int32) - The base offset in minutes
  • dst_offset_min TZOffsetMinutes(integer, int32) - The daylight savings time (DST) offset in minutes
  • end_time TZTransitionTime(string, date-time) - The time these offsets are in effect until
  • short_name string - The 3 or 4-letter short name of the timezone
  • total_offset_min TZOffsetMinutes(integer, int32) - The total offset of the timezone in minutes (equal to base_offset_min + dst_offset_min)
  • transition_time TZTransitionTime(string, date-time) - The time these offsets are in effect from

Relations

  • tz:timezone resource: Timezone - The timezone that these offsets belong to

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/offsets/?date=2015-08-19T00:00:00Z"
        }, 
        "tz:timezone": {
            "href": "https://api.teleport.org/api/timezones/iana:America%2FLos_Angeles/"
        }
    }, 
    "base_offset_min": -480, 
    "dst_offset_min": 60, 
    "end_time": "2015-11-01T09:00:00Z", 
    "short_name": "PDT", 
    "total_offset_min": -420, 
    "transition_time": "2015-03-08T10:00:00Z"
}