Convertisseur de timestamp Unix
Convertissez entre les timestamps Unix et les dates lisibles.
Timestamp Unix actuel
1773837238
Timestamp Unix → Date
Date → Timestamp Unix
Outils Associés
Qu'est-ce que le temps Unix ?
Unix time (also called epoch time or POSIX time) counts the number of seconds elapsed since January 1, 1970, 00:00:00 UTC — a moment known as the Unix epoch. It was standardized alongside the Unix operating system at Bell Labs and has since become the universal time representation in software.
Because Unix timestamps are timezone-agnostic integers, they are ideal for storing and transmitting dates in APIs, databases, and logs. Converting to a human-readable date only happens at display time, using the viewer's local timezone — which is why the same timestamp shows a different clock time in New York and Tokyo.
Horodatages de référence
| Événement | Date UTC | Horodatage (s) |
|---|---|---|
| Unix Epoch | Jan 1, 1970 00:00:00 UTC | 0 |
| Y2K | Jan 1, 2000 00:00:00 UTC | 946684800 |
| iPhone launch | Jan 9, 2007 18:00:00 UTC | 1168365600 |
| 1 billion seconds | Sep 9, 2001 01:46:40 UTC | 1000000000 |
| 1.5 billion seconds | Jul 14, 2017 02:40:00 UTC | 1500000000 |
| 1.7 billion seconds | Nov 14, 2023 22:13:20 UTC | 1700000000 |
| 2038 overflow (32-bit) | Jan 19, 2038 03:14:07 UTC | 2147483647 |
Obtenir l'horodatage actuel en code
JavaScript
Math.floor(Date.now() / 1000)
Python
import time int(time.time())
PHP
time()
Go
time.Now().Unix()
Bash
date +%s
PostgreSQL
EXTRACT(EPOCH FROM NOW())
Le problème de l'an 2038
The maximum 32-bit signed integer (2,147,483,647) corresponds to January 19, 2038 at 03:14:07 UTC. Systems storing timestamps as 32-bit integers will overflow at that moment, potentially jumping to 1901. Modern 64-bit systems are unaffected — they can represent dates up to year ~292 billion. If you maintain legacy C/embedded code using time_t as a 32-bit integer, migration to 64-bit is recommended before 2038.