About This Unix Time Clock
Epoch clock, posix timestamp clock, unixtimer
This unix time clock (also called epoch clock or unixtimer) displays the current epoch time as it increments every second. The epoch now value shown above is the exact time since epoch — the number of seconds elapsed since January 1, 1970, 00:00:00 UTC (unix time start).
What This Clock Shows
- Epoch seconds — Standard unix timestamp (10 digits)
- Epoch time milliseconds — For JavaScript, Java (13 digits)
- Microseconds & Nanoseconds — High-precision timestamps
- UTC & Local time — Human-readable formats
Unix Now Reference
Use the pause button to freeze the display when you need to copy a specific unix now value. The current time unix updates every second, showing you the live epoch timestamp.
Get Current Epoch Time in Code
How to get unix now, epoch seconds, and current timestamp in popular programming languages.
JavaScript
Use Date.now() to get epoch javascript in milliseconds. Divide by 1000 for epoch seconds.
// Get current epoch time in JavaScript
const epochMs = Date.now(); // milliseconds
const epochSec = Math.floor(Date.now() / 1000); // secondsPython
Python epoch time uses time.time() which returns unix time as a float in seconds.
import time
# Get epoch in python
epoch_sec = int(time.time()) # seconds
epoch_ms = int(time.time() * 1000) # millisecondsPostgreSQL
Use EXTRACT(EPOCH FROM ...) to get postgresql epoch, or to_timestamp() for postgresql epoch to timestamp conversion.
-- PostgreSQL extract epoch
SELECT EXTRACT(EPOCH FROM NOW());
-- PostgreSQL epoch to timestamp
SELECT to_timestamp(1704067200);Bash / Linux
Get unix seconds with date +%s. Convert unix seconds to date with date -d.
# Get unix now / unix seconds
date +%s
# Unix seconds to date
date -d @1704067200Frequently Asked Questions
What is the current epoch time?
The current epoch time (epoch now) is displayed at the top of this page, updating every second. It shows the time since epoch — seconds elapsed since January 1, 1970 UTC.
What is unix time start?
Unix time start (the epoch) is January 1, 1970, 00:00:00 UTC. This is when unix timestamp equals 0. All unix time values count seconds from this moment.
Need to convert a timestamp?
Use our Epoch Converter to convert unix timestamp to date, or convert any date to its unix time equivalent.