Time Zone
The Time Zone API is a straightforward service. Provide a location and a time (historical, current, or future), and it returns the time zone information for that location, including the time zone ID, UTC standard time or local time, the offset from UTC standard time, and the daylight saving time (DST) offset.
Use Cases
- Scheduling across time zones: A user in Tokyo and a colleague in New York need to schedule a meeting for the next day. The API helps determine the local time on both sides to coordinate the timing.
- Real-time global clocks: A developer is building a website or application that needs to display the current time in different cities in real time.
Before You Begin
1
Step 1
Apply for a
【Web Service API】 Key
2
Step 2
Enable overseas access for the applied Key by submitting a ticket to request the required permissions
3
Step 3
Construct the HTTP request URL, including the Key obtained in Step 1 as a required parameter
4
Step 4
Receive and parse the data returned from the HTTP request (in JSON or XML format)
Unless otherwise specified, all input parameters and output data are encoded in
UTF-8.
Time Zone
Time Zone API Service URL
All parameters are separated by the ampersand character (&). The following table lists the available parameters.
Request Parameters
Examples
Get UTC Standard Time Based on Local Time
https://sg-restapi.opnavi.com/v5/timezone?location=-57.31786,-24.89475&time_type=2&time=2025-09-01T10:00:00&key=<YOUR_API_KEY>Get Local Time Based on UTC Standard Time
https://sg-restapi.opnavi.com/v5/timezone?location=139.755957,35.684122&time_type=1&time=1756731600&key=<YOUR_API_KEY>