Introducing our Snowflake Data Cloud Native Application: AI-Driven Data Quality built into SQL statements! Learn More

Get Global Time Get Global Time API


Description:
This API retrieves the current time for a city or geographic location around the globe based on its time zone and time rules.


Example of global time API responses.
Locale Standard Time Date Time Zone ...
Auckland Auckland 00:09:52 2018-09-24 NZST ...
SF San Francisco 05:11:46 2018-09-23 PDT ...
NY New York City 08:13:07 2018-09-23 EDT ...
roma Rome 14:14:27 2018-09-23 CEST ...
Bombay Mumbai 17:46:36 2018-09-23 IST ...
Maui Maui 02:18:10 2018-09-23 HST ...
Click here to use this API with Cloud database tables.

Service API Endpoint:
https://api.interzoid.com/getglobaltime

Calling Structure:
https://api.interzoid.com/getglobaltime?license=[licensekey]&locale=[city]

Optional Specification Examples:
OpenAPI Specification 3.0 JSON

Input Parameters:
License: Your Interzoid-issued license key
Locale: Locale name, such as Chicago, London, Paris, Seoul, Buenos Aires, Hawaii...

Output Parameters:
Time Zone: Current time zone identifier for locale
Time Stamp: Current time in timestamp form for locale
Current Time: Current time in 24hour format for locale
Current Date: Current date for locale
Clock Time: Current time in clock format for locale
Weekday: Current day of week for locale
Day: Current day of date for locale
Month: Current month text of date for locale
Month Number: Current month number of date for locale
Year: Current year for locale
Hour: Current time hour for locale
Minute: Current time minute for locale
Second: Current time second for locale


Sample URL Query:
https://api.interzoid.com/getglobaltime?license=f8smc6s****&locale=Auckland
Sample JSON Output:
{"Locale":"Auckland","Zone":"NZST","TimeStamp":"2018-09-12 19:02:30","CurrentTime":"19:02:30","CurrentDate":"2018-09-12","ClockTime":"7:02PM","Weekday":"Wednesday","Day":"12","Month":"September","MonthNumber":"9","Year":"2018","Hour":"19","Minute":"02","Second":"30","Code":"Success","Credits":17}
You can also set a header value for your API License Key (*recommended for production environments):
Curl Example:
curl --header "x-api-key: dh8dj2f*****" "https://api.interzoid.com/getglobaltime?locale=HK"

Sample Code Showing Usage:
Github

Try the API interactively:
(API License Key will auto-populate if you have an account and are logged in. Otherwise, register for a free account.)


Login or register to obtain



Result Code:

Locale:

Time Zone:

Time Stamp:

Current Time:

Current Data:

Clock Time:

Weekday:

Day:

Month:

MonthNumber:

Year:

Hour:

Minute:

Second:

Credits Remaining:


Do you have custom requirements or are interested in on-premise solutions? Contact us at support@interzoid.com