Live · the current epoch time
Unix Timestamp Now
The current unix timestamp, ticking in seconds and milliseconds, with the same instant written out as UTC, your local time and ISO 8601.
Copy either unit in one click. The clock runs from your own device, so it keeps ticking with no network round trip.
Current Unix Timestamp
——————————
seconds
————————————— ms
ticking in milliseconds
What the current Unix timestamp means
The number above is the count of seconds since the Unix epoch, 00:00:00 UTC on 1 January 1970. It is not a local time and it has no zone: it names one instant that every machine on earth agrees on, which is exactly why it is what logs, tokens, caches and APIs record.
The second line is the same instant in milliseconds — the same value multiplied by 1000. Which one you want depends on what will read it: 10-digit seconds for most Unix tooling, Python, Go and PostgreSQL; 13-digit milliseconds for JavaScript, Java and most log pipelines.
Need a specific moment rather than this one? Use the date to timestamp converter, or go the other way with the timestamp to date converter.
Getting the current timestamp in code
Every language has a one-liner for this, and they all return the same instant — the only thing that varies is the unit.
- JavaScript — seconds
Math.floor(Date.now() / 1000)Date.now() on its own returns milliseconds.- Python — seconds
int(time.time())- PHP — seconds
time()- Go — seconds
time.Now().Unix()- Java — seconds
Instant.now().getEpochSecond()- C# — seconds
DateTimeOffset.UtcNow.ToUnixTimeSeconds()- Ruby — seconds
Time.now.to_i- Rust — seconds
SystemTime::now().duration_since(UNIX_EPOCH)?.as_secs()- Bash — seconds
date +%s- Bash — milliseconds
date +%s%3NGNU coreutils; macOS needs gdate from coreutils.- PostgreSQL — seconds
SELECT EXTRACT(EPOCH FROM now())::bigint;- MySQL — seconds
SELECT UNIX_TIMESTAMP();
Each returns the same instant; only the unit differs. To convert one of these values back into a readable date, use the timestamp to date converter, and to build a tag that shows the time in each reader’s own zone, the Discord timestamp generator.
Frequently asked questions
What is the current Unix timestamp?
It is the number of seconds that have passed since 00:00:00 UTC on 1 January 1970, and it is shown live at the top of this page in both seconds and milliseconds. The value increases by one every second, everywhere in the world at the same time.
How do I get the current Unix timestamp in code?
In JavaScript, Date.now() returns milliseconds and Math.floor(Date.now() / 1000) returns seconds. In Python it is int(time.time()), in Go time.Now().Unix(), in PostgreSQL EXTRACT(EPOCH FROM now()), and in a Unix shell date +%s.
Is the timestamp on this page the same everywhere?
Yes. A Unix timestamp has no time zone — it names an instant, not a local reading of the clock — so a visitor in Madrid and a visitor in Tokyo loading this page at the same moment see the same number.
Why does the clock read slightly differently from my server?
This clock comes from your own device, so any difference is your device's clock drift against your server's, not an error in the conversion. Machines that need to agree closely synchronise with NTP.
Other tools
Dedicated pages when you need one direction, one answer, or one format.
- 00Unix Timestamp ConverterBoth directions on one page, with the current epoch time ticking above them.
- 02Timestamp to DatePaste an epoch value, get the human date in UTC, local time and ISO 8601.
- 03Date to TimestampTurn a calendar date and time into epoch seconds or milliseconds, in UTC or your own zone.
- 04Discord Timestamp GeneratorBuild <t:0000000000:F> tags that render in every reader's own time zone.