Home / API Reference / Timezones
Resource
Timezones
The time zone names accepted in timezone fields, with their UTC offsets.
The timezone object
Every timezone record carries these fields in this order, after object, which is always "timezone".
| Field | Type | Description |
|---|---|---|
country_code | string, up to 2 characters | Two-letter country code. Empty on alias names that link to another zone (e.g. America/Buenos_Aires). |
timezone | string, up to 32 characters | The name to send in timezone fields, e.g. America/New_York. |
utc_offset | string, up to 8 characters | Offset from UTC in standard time, e.g. +05:30. A negative offset starts with the Unicode minus sign (−, U+2212), not a hyphen. |
utc_dst_offset | string, up to 8 characters | Offset from UTC while daylight saving time is in effect; the same as utc_offset where the zone has none. A negative offset starts with the same minus sign. |
Example
{
"object": "timezone",
"country_code": "CA",
"timezone": "America/Toronto",
"utc_offset": "UTC-05:00",
"utc_dst_offset": "UTC-04:00"
} List time zones
GET /api/v1/timezones
Parameters
| Parameter | In | Description |
|---|---|---|
limit | query | Records per page, 1 to 1000 (default 100). |
offset | query | Records to skip (default 0). |
Returns
A list envelope of timezone records (see Pagination).
Request
curl "https://www.bizstim.com/api/v1/timezones" \
-H "X-API-KEY: YOUR_API_KEY" \
-H "Accept: application/json"<?php
$ch = curl_init('https://www.bizstim.com/api/v1/timezones');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['X-API-KEY: YOUR_API_KEY', 'Accept: application/json'],
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);const response = await fetch('https://www.bizstim.com/api/v1/timezones', {
headers: { 'X-API-KEY': 'YOUR_API_KEY', 'Accept': 'application/json' }
});
const data = await response.json();Response
{
"object": "list",
"total": 2,
"limit": 100,
"offset": 0,
"has_more": false,
"data": [
{
"object": "timezone",
"country_code": "CA",
"timezone": "America/Toronto",
"utc_offset": "UTC-05:00",
"utc_dst_offset": "UTC-04:00"
},
{
"object": "timezone",
"country_code": "CA",
"timezone": "America/Toronto",
"utc_offset": "UTC-05:00",
"utc_dst_offset": "UTC-04:00"
}
]
}