Documentation

API URL


GET /current-time; GET /convert-time

Headers
Code
Content-Type: application/json
Query Parameters


Example GET Request

Code
GET /api/v1/convert-time?sourceTime=2026-04-06T15:30:00&sourceZone=America/New_York&targetZone=Europe/London

Successful Response

Status
HTML
200 OK
Body
Code
{
  "base_location": {
    "datetime": "2025-12-31 12:00:00",
    "timezone_location": "America/New_York",
    "timezone_name": "EST",
    "gmt_offset": -5,
    "is_dst": false
  },
  "target_location": {
    "datetime": "2025-12-31 17:00:00",
    "timezone_location": "Europe/London",
    "timezone_name": "GMT",
    "gmt_offset": 0,
    "is_dst": false
  }
}

Error Response

Example
Code
400 INVALID_TIMEZONE – Invalid timezone or location
400 MISSING_INPUT – Required parameter missing
500 SERVER_ERROR – Internal application error

Last Updated:  May 4, 2026