Passer au contenu principal

Unix Timestamp

Unix timestamp (epoch time) is the number of seconds since January 1, 1970, 00:00:00 UTC — the universal time format used in databases, APIs, log files, and programming languages. Our converter translates between Unix timestamps and human-readable dates in any timezone, handles millisecond precision, and shows the current epoch time live.

Horodatage actuel

Convertir la date en horodatage

Partager cet outil
Developer Tools

À propos de Unix Timestamp Converter

Unix timestamp (epoch time) is the number of seconds since January 1, 1970, 00:00:00 UTC — the universal time format used in databases, APIs, log files, and programming languages. Our converter translates between Unix timestamps and human-readable dates in any timezone, handles millisecond precision, and shows the current epoch time live.

Comment l'utiliser

  1. Enter a Unix timestamp (seconds or milliseconds) to convert to a readable date.
  2. Enter a date and time to convert to Unix timestamp.
  3. Select your local timezone or any IANA timezone for conversion.
  4. Copy the result in ISO 8601 format, RFC 2822, or raw timestamp.

Formule et méthodologie

Unix timestamp = (date − 1970-01-01 00:00:00 UTC) in seconds. Millisecond timestamp = seconds × 1000. JavaScript: Date.now() (ms), Math.floor(Date.now()/1000) (s). PHP: time(). Python: import time; time.time(). SQL: UNIX_TIMESTAMP() (MySQL), EXTRACT(EPOCH FROM NOW()) (PostgreSQL).

Cas d'usage courants

  • Debugging API responses with timestamp fields
  • Converting log file timestamps to local time
  • Setting expiration times for JWT tokens, cookies, or cache entries
  • Database: comparing timestamps across timezone-unaware systems
  • Checking when a file was created from its filesystem timestamp

Questions fréquentes

On 32-bit systems, Unix timestamps are stored as a signed 32-bit integer, which overflows on January 19, 2038 at 03:14:07 UTC. After that point, the timestamp wraps to a large negative number. 64-bit systems (which virtually all modern systems use) won't overflow until year 292,277,026,596.
A 10-digit timestamp is in seconds since epoch (Unix standard). A 13-digit timestamp is in milliseconds (used by JavaScript's Date.now(), Java's System.currentTimeMillis(), and most modern APIs). To convert: divide by 1000. A 16-digit timestamp is in microseconds; 19 digits is nanoseconds.

Outils connexes

Tous les outils →

Intégrer cet outil sur votre site

Gratuit pour usage personnel et commercial. Copiez simplement le code ci-dessous.