Epoch & Unix Timestamp Converter
Convert Unix timestamps to human-readable dates — fast and free.
The current Unix epoch time is
— Seconds since 1970-01-01 00:00:00 UTC.
Convert timestamp to human date
Convert human date to timestamp
What is Unix epoch time?
Unix epoch time — also known as Unix time, POSIX time or Unix timestamp — is the number of seconds that have elapsed since 00:00:00 UTC on 1 January 1970, not counting leap seconds. It's the standard way computers store and exchange moments in time, because it is timezone-agnostic and easy to compare or add to.
Seconds, milliseconds or microseconds?
Most Unix systems and APIs use seconds. JavaScript's Date.now()
returns milliseconds. Databases sometimes use microseconds or
nanoseconds. This converter auto-detects the likely unit based on the magnitude of the number.
Getting the current epoch
- Shell:
date +%s - JavaScript:
Math.floor(Date.now() / 1000) - Python:
int(time.time()) - PHP:
time() - Go:
time.Now().Unix()