Free macOS Software
Activate and Unlock Features

Unix Timestamp

The current Unix timestamp:  1723260112 Start Stop Refresh

s
s
s
How to get the current Unix timestamp in different programming languages?
Java System.currentTimeMillis() / 1000
JavaScript Math.round(new Date().getTime() / 1000)
Microsoft .NET / C# (DateTime.UtcNow.Ticks - 621355968000000000) / 10000000
MySQL SELECT unix_timestamp(now())
Perl time
PHP time();
PostgreSQL SELECT extract(epoch FROM now())
Python import time;
time.time()
Ruby Time.now.to_i
Go import "time";
int32(time.Now().Unix())
SQL Server SELECT DATEDIFF(s, '1970-01-01 00:00:00', GETUTCDATE())
Swift Int(Date().timeIntervalSince1970)
Unix / Linux date +%s

Login

Forgot Password

Sign Up