Unix timestamp converter

The current Unix time is — seconds (— ms). Paste any epoch value to convert it to a date, or pick a date to get its timestamp.

What is Unix time?

Unix time counts the seconds elapsed since 00:00:00 UTC on 1 January 1970 (the "epoch"), ignoring leap seconds. JavaScript, Java and many APIs use milliseconds instead, giving 13-digit values.

Notable timestamps

SecondsUTC dateWhy it matters
01970-01-01 00:00:00The epoch
1,000,000,0002001-09-09 01:46:40First 10-digit time
1,700,000,0002023-11-14 22:13:20Round number
2,000,000,0002033-05-18 03:33:20Next round billion
2,147,483,6472038-01-19 03:14:07Max signed 32-bit: the Year 2038 problem

Get the timestamp in code

JavaScript   Math.floor(Date.now() / 1000)
Python       import time; int(time.time())
PHP          time()
Bash         date +%s
SQL (Postgres) SELECT extract(epoch FROM now());
Go           time.Now().Unix()

Frequently asked questions

Is Unix time the same everywhere?
Yes. It is based on UTC, so the same instant has the same timestamp in every time zone; only the displayed local time differs.
What happens in 2038?
Signed 32-bit counters overflow on 19 January 2038 at 03:14:07 UTC. 64-bit systems are not affected.
How do I tell seconds from milliseconds?
Current dates are 10 digits in seconds and 13 digits in milliseconds. The converter detects this automatically.