
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
| Language | Current Unix time (seconds) | Timestamp to date |
|---|---|---|
| JavaScript | Math.floor(Date.now() / 1000) | new Date(1700000000 * 1000).toISOString() |
| Python | int(time.time()) | datetime.fromtimestamp(1700000000, timezone.utc).isoformat() |
| Go | time.Now().Unix() | time.Unix(1700000000, 0).UTC().Format(time.RFC3339) |
| PHP | time() | gmdate('c', 1700000000) |
| Java | Instant.now().getEpochSecond() | Instant.ofEpochSecond(1700000000L) |
| C# | DateTimeOffset.UtcNow.ToUnixTimeSeconds() | DateTimeOffset.FromUnixTimeSeconds(1700000000) |
| Rust | SystemTime::now().duration_since(UNIX_EPOCH)?.as_secs() | chrono::DateTime::from_timestamp(1700000000, 0) |
| Bash (GNU date) | date +%s | date -u -d @1700000000 |
| MySQL | SELECT UNIX_TIMESTAMP(); | SELECT FROM_UNIXTIME(1700000000); |
| PostgreSQL | SELECT 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
- Days between dates: How many days, weeks, months and years there are between two dates.
- Date calculator: Add or subtract days, weeks, months and years from a date.
- Days until a date: A live countdown to any date, with a link you can share.
- Days until Christmas: How many days (and sleeps) are left until Christmas Day.
- Age calculator: Exact age in years, months and days, and when the next birthday is.
- Week number: The ISO week number for today or any date, and a table of every week in the year.
- Financial week: The financial, fiscal or tax week number for any date, including the UK tax year.
- Business days calculator: Count or add working days, skipping weekends and UK bank holidays.
- Day of the week: Find out which weekday any date falls on.
- Unix timestamp converter: Epoch time to a date and back, in seconds, milliseconds, microseconds or nanoseconds.
- ISO 8601 converter: Any date as ISO 8601, RFC 3339, RFC 2822, week date, SQL, Excel and Unix time.