Home / Developer tools / Current Unix timestamp

Current Unix Timestamp

The current Unix timestamp, updated live in seconds and milliseconds, with the matching UTC and local time. Copy the value in one click, or use the code snippets to read it in your own program.

Current Unix timestamp (seconds)

1793741277
Milliseconds1793741277000
UTC (ISO 8601)2026-11-03T21:27:57Z
Your local timeTue, 03 Nov 2026 21:27:57 UTC
Until the 2038 limit353,742,370 seconds

Timestamp to date

Try:

Everything runs in your browser. Your data is not sent to our server.

What the current Unix timestamp is

The number at the top of this page is how many seconds have passed since 00:00:00 UTC on 1 January 1970. It grows by one every second, and it is the same on every computer in the world that has the right time, whatever the local time zone is. The clock uses your device time, so if your device clock is wrong, the value here will be wrong as well. The milliseconds value is the same number times 1000, plus the current fraction of a second.

Milestones in Unix time

TimestampDate and time (UTC)Note
01970-01-01 00:00:00The Unix epoch
10000000002001-09-09 01:46:40One billion seconds
12345678902009-02-13 23:31:30The "1234567890 day"
15000000002017-07-14 02:40:001.5 billion
17000000002023-11-14 22:13:201.7 billion
18000000002027-01-15 08:00:001.8 billion
20000000002033-05-18 03:33:20Two billion seconds
21474836472038-01-19 03:14:07Largest signed 32-bit value

The last row of the live table above counts the seconds that remain until that 32-bit limit. Systems that store time in a 64-bit integer do not have this limit. Read more in What is Unix time?

Get the current timestamp in code

LanguageSecondsMilliseconds
JavaScriptMath.floor(Date.now() / 1000)Date.now()
Pythonint(time.time())int(time.time() * 1000)
PHPtime()(int) (microtime(true) * 1000)
JavaInstant.now().getEpochSecond()System.currentTimeMillis()
C#DateTimeOffset.UtcNow.ToUnixTimeSeconds()DateTimeOffset.UtcNow.ToUnixTimeMilliseconds()
Gotime.Now().Unix()time.Now().UnixMilli()
RubyTime.now.to_i(Time.now.to_f * 1000).to_i
RustSystemTime::now().duration_since(UNIX_EPOCH)?.as_secs().as_millis()
SwiftInt(Date().timeIntervalSince1970)Int(Date().timeIntervalSince1970 * 1000)
KotlinSystem.currentTimeMillis() / 1000System.currentTimeMillis()
Shelldate +%sdate +%s%3N (GNU date)
Excel=(NOW() - DATE(1970,1,1)) * 86400multiply by 86400000

In a database

-- MySQL
SELECT UNIX_TIMESTAMP();
-- PostgreSQL
SELECT EXTRACT(EPOCH FROM now())::bigint;
-- SQLite
SELECT strftime('%s', 'now');
-- SQL Server (DATEDIFF_BIG avoids the 2038 overflow)
SELECT DATEDIFF_BIG(SECOND, '1970-01-01', SYSUTCDATETIME());

The Excel formula uses your computer's local time, so for a true UTC result add or subtract your offset.

Why two servers can show different values

  • Clock drift. Machines without time sync can be seconds or minutes off. Use NTP.
  • Different units. One system shows seconds, the other milliseconds.
  • Local time used by mistake. A timestamp built from local clock time, not UTC, is off by the zone offset.
  • Caching. A page or API response that was cached shows an older value.

Using the current timestamp

  • Token expiry. JWT exp is a Unix timestamp in seconds: now plus 3600 gives a one-hour token. Build one with the JWT claims builder.
  • Cache busting and versioning. A timestamp in a file name or query string.
  • Logs and events. A single number that sorts correctly and has no time zone.
  • Request signing. Many APIs reject requests whose timestamp differs from server time by more than a few minutes.

To turn any value into a date, use the box on this page, or the timestamp to date and date to timestamp converters. The Unix timestamp converter does both on one page.

Frequently asked questions

What is the current Unix timestamp?

It is the number at the top of this page. It counts the seconds since 1 January 1970 00:00:00 UTC and updates every second.

How do I get the current Unix timestamp in JavaScript?

Use Math.floor(Date.now() / 1000) for seconds, or Date.now() for milliseconds.

Is the current Unix timestamp the same everywhere?

Yes, at the same moment it is the same number in every time zone. Only the local clock time differs.

Why does my timestamp have 13 digits?

It is in milliseconds. Divide by 1000 to get the 10-digit seconds value.

Where does the time on this page come from?

From your device clock. If your device time is wrong, the shown timestamp is wrong too.