// current unix timestamp — ms
// local time
01 Timestamp → Human Date
02 Human Date → Timestamp
// common timestamp reference
EventUnix TimestampDate

// what is a unix timestamp?

A Unix timestamp is the number of seconds (or milliseconds) elapsed since January 1, 1970 00:00:00 UTC — known as the Unix Epoch.

It is the standard way most programming languages, databases, and APIs represent dates and times internally. For example, 1700000000 equals November 14, 2023 22:13:20 UTC.

// seconds vs milliseconds

Unix timestamps in seconds are 10 digits long (e.g. 1700000000). Most Unix systems, Linux, and server-side languages use seconds.

Timestamps in milliseconds are 13 digits long (e.g. 1700000000000). JavaScript's Date.now() returns milliseconds. This tool auto-detects and handles both.

// frequently asked questions
How do I convert a Unix timestamp to a date in JavaScript?
Use new Date(timestamp * 1000) for seconds, or new Date(timestamp) for milliseconds. For example: new Date(1700000000 * 1000).toISOString() returns "2023-11-14T22:13:20.000Z".
What is the current Unix timestamp?
The live timestamp is shown at the top of this page and updates every second. You can also get it in your terminal with date +%s on Linux/Mac, or Date.now() in JavaScript.
What is Unix timestamp 0?
Timestamp 0 represents the Unix Epoch: January 1, 1970, 00:00:00 UTC. All Unix timestamps are counted from this point in time.
What is the Year 2038 problem?
32-bit signed integers overflow at timestamp 2147483647 — which equals January 19, 2038. Systems still using 32-bit time values may break after this date. Modern 64-bit systems are not affected.
How do I convert a date to Unix timestamp in Python?
Use the datetime module: import datetime; int(datetime.datetime(2024, 1, 1).timestamp()). For timezone-aware conversion, use datetime.timezone.utc to avoid local time offsets.
// related guides & articles