Convertidor de timestamp Unix

Convierte fechas/horas a segundos Unix, milisegundos y cadenas ISO.

// about

Sobre esta herramienta

Las computadoras miden el tiempo en segundos desde el 1 de enero de 1970 (Timestamp Unix). Esta herramienta convierte esos números en fechas legibles y viceversa.

Cómo usarla

  1. Pega un número de timestamp o elige una fecha.
  2. Haz clic en 'Convertir'.
  3. Mira los resultados formateados en fecha y hora.

Por qué usar esta herramienta

  • Convierte números como 1700000000 en fechas reales al instante.
  • Soporta formatos de segundos y milisegundos.
  • Útil para revisar registros de servidores y errores de programas.

Preguntas frecuentes (FAQ)

¿Qué es el timestamp Unix?

Es el total de segundos transcurridos desde el 1 de enero de 1970 a medianoche UTC.

¿Por qué hay números de 10 y 13 dígitos?

10 dígitos cuentan segundos; 13 dígitos cuentan milisegundos.

¿Qué zona horaria muestra?

Muestra tu hora local y la hora estándar UTC.

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 "Convertidor de timestamp Unix" that meets the requirements below.

## Goal

Build a tool that converts between Unix timestamps and human-readable dates.

## Core features

- Timestamp → date and date → timestamp
- Auto-detect seconds (10 digits) or milliseconds (13 digits)
- Show UTC, local and a chosen IANA zone together
- ISO 8601 output
- 'Now' button

## Inputs

- A timestamp or a date and time
- Time zone

## Outputs

- Converted date or timestamp
- ISO 8601 string
- Relative time (e.g. 3 days ago)

## Edge cases and handling rules

- Support negative timestamps before 1970
- Handle values after 2038 correctly
- Explain skipped or repeated local times at DST transitions
- Validate non-numeric input

## 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)

- 0 → 1970-01-01T00:00:00Z
- 1700000000 → 2023-11-14T22:13:20Z
- 1700000000000 (13 digits) is the same instant

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-timestamp-converter/SKILL.md para que agentes como Claude Code lo reutilicen cada vez que crees o cambies la herramienta.

---
name: build-timestamp-converter
description: Use when building or changing a Convertidor de timestamp Unix tool. Build a tool that converts between Unix timestamps and human-readable dates.
---

# Build: Convertidor de timestamp Unix

## Goal

Build a tool that converts between Unix timestamps and human-readable dates.

## 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

- Timestamp → date and date → timestamp
- Auto-detect seconds (10 digits) or milliseconds (13 digits)
- Show UTC, local and a chosen IANA zone together
- ISO 8601 output
- 'Now' button

## Inputs

- A timestamp or a date and time
- Time zone

## Outputs

- Converted date or timestamp
- ISO 8601 string
- Relative time (e.g. 3 days ago)

## Rules

- Support negative timestamps before 1970
- Handle values after 2038 correctly
- Explain skipped or repeated local times at DST transitions
- Validate non-numeric input
- 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

- [ ] 0 → 1970-01-01T00:00:00Z
- [ ] 1700000000 → 2023-11-14T22:13:20Z
- [ ] 1700000000000 (13 digits) is the same instant

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.