v1worldtime
Get current date and time for any location using city/state/country names, geographic coordinates, or timezone identifiers.
Instructions
API Ninjas World Time API endpoint. Returns the current date and time by city/state/country, location coordinates (latitude/longitude), or timezone. One of the following parameter combinations must be set: lat + lon, city (state and country optional), timezone
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | No | Latitude of desired location. | |
| lon | No | Longitude of desired location. | |
| city | No | City name. | |
| state | No | US state name or 2-letter abbreviation (for United States cities only). | |
| country | No | Country name or 2-letter country code. | |
| timezone | No | Timezone of desired location (e.g. Europe/London). |