This page provides a guide on how to use the /timezone-query
endpoint to fetch timezone information.
Usage
To use the /timezone-query
endpoint, simply send a GET request to:
GET /timezone-query?timezone=<timezone_name>
Replace <timezone_name>
with the name of the timezone you want to query.
Example
Here's an example of a request to fetch the timezone information for "New York":
GET /timezone-query?timezone=New%20York
Response
The response will be in JSON format and will include the following fields:
timezone
: The name of the timezone.offset
: The current offset from UTC.is_dst
: A boolean indicating whether daylight saving time is in effect.
For example, a response for "New York" might look like this:
{
"timezone": "America/New_York",
"offset": "-5:00",
"is_dst": true
}
More Information
For more information about the /timezone-query
endpoint, please visit the API documentation.