Hora local en una ciudad
city-local-timeDevuelve la fecha, la hora local, el desfase UTC y si rige el horario de verano en una ciudad dada por nombre (resuelta a su zona IANA con la lista GeoNames incluida), ahora o en un instante dado. Cuándo: un resultado de fechas, zonas horarias o calendario tiene que ser exacto (desfases, horario de verano, fines de mes, bisiestos). No para: devolver el instante actual (time-now). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). No determinista: según el reloj salvo que se dé at. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.
EN: Returns the local date, time, UTC offset and daylight-saving status in a city given by name (resolved to its IANA time zone from the embedded GeoNames list), now or at a given instant, with DST transitions from the runtime time-zone database. When: a date, time-zone or calendar result has to be exact (offsets, daylight saving, month ends, leap years). [EN completo / full EN: inputSchema.description]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | Instant to use instead of the clock: ISO 8601 with Z/offset, or local time in the city (for tests and reproducible output) (string; optional; up to 40 chars). | |
| city | Yes | City name in its usual or Spanish form; a trailing ", country" narrows it (Medellín, Valencia, Venezuela, Nueva York) (string; required; at least 2 chars; up to 100 chars). | |
| country | No | Optional country (ISO code or name) to tell apart cities with the same name (string; optional; at least 1 chars; up to 80 chars). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| utc | No | ||
| city | No | ||
| date | No | ||
| time | No | ||
| offset | No | ||
| source | No | ||
| timezone | No | ||
| ambiguous | No | ||
| local_iso | No | ||
| weekday_en | No | ||
| weekday_es | No | ||
| dst_in_effect | No | ||
| other_matches | No | ||
| offset_minutes | No |