Convert Unix epoch timestamps to readable dates in any time zone, and dates back to timestamps.
A Unix timestamp (epoch time) is the number of seconds that have elapsed since 1 January 1970 00:00:00 UTC, not counting leap seconds. It is time-zone independent, which makes it a common way to store and exchange points in time.
It looks at the magnitude: values below 10^11 are treated as seconds, below 10^14 as milliseconds, below 10^17 as microseconds and anything larger as nanoseconds. You can override the guess with the Unit selector.
Date.now() and new Date().getTime() return milliseconds since the epoch, while most Unix tools, databases and languages such as PHP and Python's time.time() use seconds. Multiply or divide by 1000 to convert between them.
Systems that store Unix time as a signed 32-bit integer overflow on 19 January 2038 at 03:14:07 UTC (timestamp 2147483647). Using 64-bit integers, as modern systems do, avoids the problem.