Unix Timestamp Converter
Convert Unix epoch timestamps (seconds, milliseconds, microseconds) to human-readable dates in UTC and local time, and dates back to timestamps.
Current Unix time: 0
What is Unix time?
Unix time (epoch time, POSIX time) counts the seconds since 00:00:00 UTC on 1 January 1970, not counting leap seconds. It is how most databases, APIs, logs and programming languages store moments in time. JavaScript and Java often use milliseconds instead of seconds.
This converter detects the unit automatically: 10 digits are seconds, 13 are milliseconds, 16 are microseconds and 19 are nanoseconds. Results are shown in UTC, ISO 8601 and your local time zone.
Get the current timestamp in code
- JavaScript:
Math.floor(Date.now() / 1000) - Python:
int(time.time()) - PHP:
time() - Go:
time.Now().Unix() - Bash:
date +%s - SQL (PostgreSQL):
extract(epoch from now())
Frequently asked questions
What is the Year 2038 problem?
Signed 32-bit integers overflow at 03:14:07 UTC on 19 January 2038 (timestamp 2147483647). Systems that store time in 64 bits are not affected.
Does Unix time depend on time zone?
No. A Unix timestamp is always UTC. Only its display as a calendar date depends on the time zone.