The current_time endpoint takes a location in the form of a location name, latitude and longitude, or IP address and returns the current time, date, and timezone of that location.
GET
/
v1
/
current_time
Current Time endpoint
Copy
curl --request GET \ --url https://timezone.abstractapi.com/v1/current_time
Your unique API key. Note that each user has unique API keys for each of Abstract’s APIs, so your Time, Date, and Timezone API key will not work for as your User Avatar API, for example.
The location to determine the current time and timezone of. This parameter accepts the location as a string (e.g., Los Angeles, CA), a longitude and latitude (e.g., -31.4173391,-64.183319) , or an IP address (e.g., 82.111.111.111)