Skip to main content
GET
Convert Time endpoint

Getting started

Base URL

Validation endpoint

This was a successful request, and returns both datetime and timezone data for the base location (Los Angeles) and the target location (Oxford).

Request parameters

String
required
Your unique API key. Note that each user has unique API keys for each of Abstract’s APIs, so your Time, Date, and Timezone API key will not work for your User Avatar API, for example.
String
required
The location you use as a base to convert the datetime for. This parameter accepts the location as a string (e.g., Los Angeles, CA), a longitude and latitude (e.g., -31.4173391,-64.183319) , or an IP address (e.g., 82.111.111.111)
String
required
The location you want to get the datetime for. This parameter accepts the location as a string (e.g., Los Angeles, CA), a longitude and latitude (e.g., -31.4173391,-64.183319) , or an IP address (e.g., 82.111.111.111)
String
The current datetime you’re converting.

Response parameters

The API response is returned in a universal and lightweight JSON format.
Object
The JSON Object containing the time and timezone details of the base location from the request.
Object
The JSON Object containing the time and timezone details of the target location from the request.
String
Present in both in the base_location and target_location objects. The location from the request.
Float
Present in both in the base_location and target_location objects. Decimal of the longitude found for the requested_location.
Float
Present in both in the base_location and target_location objects. Decimal of the latitude found for the requested_location.
String
Present in both in the base_location and target_location objects. The current date and time of the requested_location.
String
Present in both in the base_location and target_location objects. Timezone’s name from the IANA Time Zone Database.
String
Present in both in the base_location and target_location objects. Timezone’s abbreviation, also from the IANA Time Zone Database.
Integer
Present in both in the base_location and target_location objects. Timezone’s offset from Greenwich Mean Time (GMT).
Boolean
Present in both in the base_location and target_location objects. True if the location is currently in Daylight Savings Time (DST).