Time Zone

Retrieves the local time of any location

This endpoint retrieves the local time of any location in the world for a given latitude, longitude and time. The input and retrieved time format is in milliseconds.

post/v1/timezone/location

Request

  • Base URL: https://api.cloud.precisely.com
  • URL: https://api.cloud.precisely.com/v1/timezone/location
  • Auth: one of:
    • HTTP bearer
    • API key in header Authorization

Headers

X-Request-Idstring

The X-Request-Id header is optional but incredibly useful for developers. It serves as a unique identifier for requests within our system. When you encounter any problems with your requests, providing us with the X-Request-Id will enable us to pinpoint the specific request in question without the need for extensive manual searching. This means faster and more efficient troubleshooting. The maximum allowed length is 38 characters.

Request body

Example request

{
  "locations": [
    {
      "id": "1",
      "timestamp": 1691138974831,
      "geometry": {
        "coordinates": [
          -93.176563,
          44.709968
        ]
      }
    }
  ]
}

Response

Timezone Retrieved Successfully For Location

Example response

{
  "responses": [
    {
      "id": "16",
      "status": "OK",
      "code": "DIS-1003",
      "detail": "Issue with internal services",
      "timezone": {
        "timezoneName": "Mountain Time (MST/MDT)",
        "zoneType": "America/Denve",
        "utcOffset": -25200000,
        "dstOffset": 3600000,
        "timestamp": 1691138974831
      }
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.