Back to explore

web

Time

Credits: 0.000001

Now

POST /v1/time/Now

Get the current time

Request

locationstring

optional location, otherwise returns UTC

Response

localtimestring

the current time as HH:MM:SS

locationstring

the location as Europe/London

timestampstring

timestamp as 2006-01-02T15:04:05.999999999Z07:00

timezonestring

the timezone as BST

unixnumber

the unix timestamp

Request

Response

{
    "localtime": "14:35:44",
    "timestamp": "2021-09-13T14:35:44.144293723Z",
    "location": "Prime Meridian",
    "timezone": "UTC",
    "unix": "1631543744"
}

Credits: 0.000001

Zone

POST /v1/time/Zone

Get the timezone info for a specific location

Request

locationstring

location to lookup e.g postcode, city, ip address

Response

abbreviationstring

the abbreviated code e.g BST

countrystring

country of the timezone

dstboolean

is daylight savings

latitudenumber

e.g 51.42

localtimestring

the local time

locationstring

location requested

longitudenumber

e.g -0.37

offsetnumber

UTC offset in hours

regionstring

region of timezone

timezonestring

the timezone e.g Europe/London

Request

Response

{
    "location": "London",
    "region": "City of London, Greater London",
    "country": "United Kingdom",
    "latitude": 51.52,
    "longitude": -0.11,
    "timezone": "Europe/London",
    "abbreviation": "BST",
    "localtime": "2021-09-13 15:37",
    "dst": true,
    "offset": 1
}