Calculadora de zona horaria

Convierte la hora entre países teniendo en cuenta el desfase UTC.

// about

Sobre esta herramienta

Elige una ciudad de origen y otra de destino, introduce la hora local y consulta la hora local correspondiente con su desfase UTC.

Cómo usarla

  1. Elige el país y la ciudad a los que corresponde la hora original.
  2. Elige el destino e introduce la fecha y la hora.
  3. Pulsa «Convertir hora» para ver la hora de destino y el desfase.

Por qué usar esta herramienta

  • Planifica reuniones internacionales sin hacer cálculos de zonas horarias de cabeza.
  • Tiene en cuenta el horario de verano cuando el sistema operativo lo proporciona.
  • Muestra el momento UTC para que los equipos confirmen la conversión.
Guías · Fecha y hora · 8 min de lectura

Las marcas de tiempo Unix explicadas: segundos o milisegundos, zonas horarias y el problema del año 2038

¿Cuándo es 1700000000? ¿Por qué algunos sistemas usan números de 13 dígitos? ¿Por qué la hora sale desfasada exactamente una hora? La mayoría de los errores con fechas desaparecen al entender unos pocos conceptos.

Una marca de tiempo Unix (tiempo Unix, tiempo epoch) es un único entero que cuenta los segundos transcurridos desde las 00:00:00 UTC del 1 de enero de 1970, el epoch de Unix. 0 es 1970-01-01 00:00:00 UTC y 1700000000 es 2023-11-14 22:13:20 UTC.

0           → 1970-01-01 00:00:00 UTC
1700000000  → 2023-11-14 22:13:20 UTC
1735689600  → 2025-01-01 00:00:00 UTC
2147483647  → 2038-01-19 03:14:07 UTC
Marcas de tiempo Unix: valores de 10 o 13 dígitos, conversión entre UTC y hora local, trampas del horario de verano y el problema de 2038.
Leer guía →
Créalo con IA

Crea esta herramienta tú mismo con IA

¿Quieres tu propia versión? Copia el prompt en un chat de IA o guarda el archivo de skill para un agente de programación. Incluyen las funciones, casos límite y pruebas que usamos al crearla.

El prompt y la skill están en inglés, que las herramientas de IA entienden perfectamente.

Prompt de instrucciones para IA

Pégalo tal cual en Claude, ChatGPT o Gemini.

You are an experienced full-stack web developer. Build a web tool called "Calculadora de zona horaria" that meets the requirements below.

## Goal

Build a tool that shows a date and time from one zone in several other time zones.

## Core features

- Enter a base zone, date and time
- Add or remove cities (IANA zones)
- Show UTC offset and whether DST applies
- Highlight overlapping office hours (09–18)
- Copy the result table

## Inputs

- Base zone, date and time
- List of zones to compare

## Outputs

- Local date and time per zone
- Offset from the base zone

## Edge cases and handling rules

- Clearly mark date changes (+1 day, −1 day)
- Offset changes around DST start and end
- Half- and quarter-hour offsets (India, Nepal)
- Use IANA names rather than fixed offsets

## Implementation requirements

- Build it as a single page (HTML, CSS, JavaScript) that runs entirely in the browser, and never send the user's input to a server.
- Make the UI responsive and easy to use on mobile; label every input and keep everything keyboard accessible.
- Add a Copy button for results and show clear, friendly error messages for invalid input.
- Keep the core logic in functions separate from the UI so it can be unit-tested.

## Definition of done (test cases)

- 2026-01-15 09:00 Asia/Seoul → 2026-01-14 19:00 America/New_York
- 2026-07-15 09:00 Asia/Seoul → 2026-07-14 20:00 America/New_York
- Asia/Kolkata is +05:30

First outline your implementation plan in at most five lines, then write the complete code, and finally explain how to check the test cases above.

Skill (SKILL.md)

Guárdalo como .claude/skills/build-timezone-calculator/SKILL.md para que agentes como Claude Code lo reutilicen cada vez que crees o cambies la herramienta.

---
name: build-timezone-calculator
description: Use when building or changing a Calculadora de zona horaria tool. Build a tool that shows a date and time from one zone in several other time zones.
---

# Build: Calculadora de zona horaria

## Goal

Build a tool that shows a date and time from one zone in several other time zones.

## Workflow

1. Review the required features, inputs and outputs below and ask about anything missing first.
2. Implement the core logic as pure functions separate from the UI.
3. Check the logic against the test cases in the verification list.
4. Build a responsive UI with an input form, a result area and a Copy button.
5. Reproduce each edge case listed under Rules and refine the error messages.

## Core features

- Enter a base zone, date and time
- Add or remove cities (IANA zones)
- Show UTC offset and whether DST applies
- Highlight overlapping office hours (09–18)
- Copy the result table

## Inputs

- Base zone, date and time
- List of zones to compare

## Outputs

- Local date and time per zone
- Offset from the base zone

## Rules

- Clearly mark date changes (+1 day, −1 day)
- Offset changes around DST start and end
- Half- and quarter-hour offsets (India, Nepal)
- Use IANA names rather than fixed offsets
- Build it as a single page (HTML, CSS, JavaScript) that runs entirely in the browser, and never send the user's input to a server.

## Verification

- [ ] 2026-01-15 09:00 Asia/Seoul → 2026-01-14 19:00 America/New_York
- [ ] 2026-07-15 09:00 Asia/Seoul → 2026-07-14 20:00 America/New_York
- [ ] Asia/Kolkata is +05:30

Consejos para trabajar con IA

  • Indica tu stack (React, Vue o HTML puro) en la primera línea para obtener código adecuado.
  • Pide que ejecute las pruebas listadas y muestre los resultados antes de aceptar el código.
  • No pegues contraseñas reales, datos de clientes ni claves de API; usa valores de ejemplo.