Aller au contenu

Convertisseur de timestamp Unix

Convertit entre epoch Unix (secondes ou millisecondes) et date/heure lisible, en UTC et local.

Fonctionne dans votre navigateur

Convertisseur bidirectionnel : epoch Unix d'un côté, date humaine de l'autre. Tout se met à jour à la frappe. Le bouton 'maintenant' donne le timestamp courant en un clic.

UTC

Invalide

Local

Invalide

ISO 8601

Invalide

Relatif

Invalide

Comment l'utiliser

  1. Type a timestamp or a date

    Either side accepts input; the other updates live.

  2. Pick seconds vs milliseconds

    Auto-detected, but you can toggle if the auto-detection guessed wrong.

  3. Copy what you need

    UTC, local, ISO 8601 or raw epoch are all shown.

Qu'est-ce que c'est ?

Unix time is a count of seconds (or milliseconds) since the Unix epoch - 1970-01-01T00:00:00 UTC. It's the universal machine-readable timestamp: timezone-free, monotonic (mostly), and trivial to compare. Most databases, log formats and APIs use it under the hood, but humans read it in date-time strings, so a converter is the constant translation between the two.

Quand l'utiliser

Debugging a log line that reports timestamps in raw epoch. Building a test fixture from a known date. Converting between an API response's 'created_at: 1700000000' and what that date actually was. Generating a future timestamp for a 'scheduled at' field.

Erreurs courantes

Mixing up seconds and milliseconds - 1700000000 is November 2023, but 1700000000000 is the same instant. Forgetting that the displayed local time depends on the viewer's timezone, so a screenshot of '14:00 EST' on your machine reads differently on someone else's. And treating epoch as if it accounted for leap seconds - it doesn't.

FAQ

Seconds or milliseconds?
Unix time is traditionally seconds since 1970-01-01T00:00:00Z, but JavaScript's Date uses milliseconds. We auto-detect from the magnitude of the number, and you can toggle explicitly.
What's the year 2038 problem?
Signed 32-bit Unix timestamps overflow on 2038-01-19T03:14:07Z. Most modern systems use 64-bit timestamps, so this tool handles dates far beyond that without trouble.

Plus dans cette catégorie