Time Zone API: Current Time & Conversion
Ask what time it is anywhere, convert a wall-clock time between zones and find the exact moment clocks change. Everything is computed from the IANA time zone database and returned as JSON, free and without a key.
Try it live
API playground
Request code
The code follows the form above and always uses the production address.
Endpoints
| Endpoint | What it returns |
|---|---|
| GET /api/v1/time/now | The current date and time in an IANA time zone, with its UTC offset, abbreviation, whether daylight saving time is in effect and the next offset change. /api/v1/time is the original path and stays available. |
| GET /api/v1/time/convert | Converts a wall-clock time from one IANA zone to another. A time skipped by a daylight-saving jump or repeated when clocks go back is resolved explicitly ("resolution", "note", "occurrences"). /api/v1/convert is the original path and stays available. |
| GET /api/v1/time/dst | Every change of UTC offset in a zone during a year (daylight saving time starting and ending, or a permanent change), found by searching the runtime's tz data and exact to the second. |
| GET /api/v1/time/find | Looks a name up among countries (name or ISO code) and the ~34,000 cities of the GeoNames index, and returns the matching IANA zones with their current local time. |
| GET /api/v1/time/zones | Every IANA time zone the serving runtime supports, with its current UTC offset and whether daylight saving time is in effect. With "country", only the zones used in that country. |
| GET /api/v1/time/offsets | The UTC offsets in use right now, each with the IANA zones currently on it. With "minutes", only that offset. |
Things worth knowing before you build on it
- Send IANA zone names such as Europe/Paris, not abbreviations. “CST” is Central time in the United States, China Standard Time and Cuba Standard Time; an abbreviation cannot identify a zone. If you only have a city or a country,
/api/v1/time/findturns the name into a zone. - Do not poll for the time. The current-time response may be reused for one second; read “unixMs” once and let your own timer count from there.
- Conversions never hide a daylight-saving edge case. “resolution” is exact, gap_shifted_forward, overlap_earlier or overlap_later, and “note” says in a sentence what was done.
- Dates in the future use the rules known today. Governments change daylight-saving rules, sometimes weeks ahead, so re-check a far-off appointment closer to its date.
- Conversions accept wall-clock times from 1970 to 2100, and transition lookups cover the same years.
A real request and its response
The current time in Paris. “nextTransition” is the next change of UTC offset, so you know in advance when the answer will shift by an hour:
curl 'https://clockcrest.com/api/v1/time/now?tz=Europe/Paris'
{
"timeZone": "Europe/Paris",
"local": "2026-12-01T14:46:26",
"iso": "2026-12-01T14:46:26+01:00",
"utcOffset": "+01:00",
"utcOffsetMinutes": 60,
"abbreviation": "CET",
"isDst": false,
"utc": "2026-12-01T13:46:26Z",
"unixMs": 1796132786067,
"nextTransition": {
"at": "2027-03-28T01:00:00Z",
"utcOffsetBefore": "+01:00",
"utcOffsetAfter": "+02:00"
},
"source": "IANA tz database (runtime Intl)"
}Every example is real output, captured on 2026-12-01 from a local run of the same code. Live values differ.
Questions and answers
How accurate is the time?
It is the clock of the Cloudflare server that answers your request. An hourly job compares that clock with the NIST Internet Time Service, which confirms agreement to about one second; the latest result is on the status page. The network delay between the server and your code is not corrected, so for a display clock measure the round trip or sync once and count locally.
Do I need an API key?
No. There is no key, no account and no sign-up. Please cache responses for as long as their Cache-Control header allows.
Can I call it from a web page?
Yes. Every response carries Access-Control-Allow-Origin: *, so a browser on any site can call the API directly.
Which time zones are supported?
Every zone the serving runtime knows from the IANA database. /api/v1/time/zones lists them with their current UTC offset, and can be limited to one country.