Convertisseur d'horodatage Unix

Convertit entre les horodatages Unix et les dates lisibles. Détecte automatiquement secondes ou millisecondes, supporte UTC et heure locale.

Horodatage actuel

1777641182sec

⏱ Horodatage → Date / Heure


📅 Date / Heure → Horodatage


Obtenir l'horodatage dans les langages populaires

LangageMéthode
Java(int) (System.currentTimeMillis() / 1000)
JavaScriptMath.round(new Date().getTime()/1000)
.NET / C#(int)DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1)).TotalSeconds
Golangint32(time.Now().Unix())
PHPtime()
Perltime
Pythontime.time()
RubyTime.now.to_i
SwiftNSDate().timeIntervalSince1970
MySQLSELECT unix_timestamp(now())
PostgreSQLSELECT extract(epoch FROM now())
SQL ServerSELECT DATEDIFF(s, '1970-01-01 00:00:00', GETUTCDATE())
Unix / Linux / macOSdate +%s