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
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "v1worldtime"
}
}Input 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). |