At timezoneapi.io you can request an IP address using cURL. It returns a few objects including location, timezone and datetime.
$curl https:
Returns
- Location including latitude / longitude
- timezone (time zone variables e.g. capital, currency, phone prefix, shortcodes etc.
- datetime (the date / time for the timezone when the request was made + lots of date / time variables).
Take a look here for API documentation:
IP address. Get users location, time zone and date/time details. - Timezone API[
^]