The Date Nerd
A cartoon owl in round glasses, thinking

Current Unix Time

The time now as a Unix timestamp, updated live.

Current Unix time (seconds since 1 January 1970 UTC)

 

  • Milliseconds:  
  • ISO 8601 (UTC):  
  • Your time (local):  

Runs in your browser. Nothing you type is uploaded.

What is the Unix time now?

The big number above is the current Unix time: the seconds elapsed since 00:00:00 UTC on 1 January 1970 (the Unix epoch). The line below it counts milliseconds, which is what Date.now() in JavaScript returns. The time comes from your device's clock, so it is only as accurate as that clock.

Copy it, or turn it into a date

Use the buttons to copy the seconds, milliseconds or ISO 8601 time. Press Pause to freeze the numbers while you copy them. To turn any timestamp into a date, or a date into a timestamp, use theUnix timestamp converter.

Get the current Unix time in code

LanguageCurrent Unix time (seconds)Timestamp to date
JavaScriptMath.floor(Date.now() / 1000)new Date(1700000000 * 1000).toISOString()
Pythonint(time.time())datetime.fromtimestamp(1700000000, timezone.utc).isoformat()
Gotime.Now().Unix()time.Unix(1700000000, 0).UTC().Format(time.RFC3339)
PHPtime()gmdate('c', 1700000000)
JavaInstant.now().getEpochSecond()Instant.ofEpochSecond(1700000000L)
C#DateTimeOffset.UtcNow.ToUnixTimeSeconds()DateTimeOffset.FromUnixTimeSeconds(1700000000)
RustSystemTime::now().duration_since(UNIX_EPOCH)?.as_secs()chrono::DateTime::from_timestamp(1700000000, 0)
Bash (GNU date)date +%sdate -u -d @1700000000
MySQLSELECT UNIX_TIMESTAMP();SELECT FROM_UNIXTIME(1700000000);
PostgreSQLSELECT EXTRACT(EPOCH FROM now());SELECT to_timestamp(1700000000);
Excel=(NOW()-DATE(1970,1,1))*86400=A1/86400+DATE(1970,1,1)

FAQ

How many digits is a Unix timestamp?

Ten for seconds (until the year 2286), thirteen for milliseconds. If you see sixteen or nineteen digits it is microseconds or nanoseconds.

Is Unix time the same in every time zone?

Yes. It counts from a fixed UTC moment, so everyone in the world gets the same number at the same instant.

Does Unix time include leap seconds?

No. Every day counts as exactly 86,400 seconds, so Unix time and UTC briefly disagree around a leap second.

More date tools