// timestamp ↔ date · seconds & milliseconds · all timezones · live clock
A Unix timestamp is the number of seconds that have elapsed since January 1, 1970 00:00:00 UTC (the Unix epoch). It's a timezone-independent way to represent a moment in time, widely used in databases, APIs, and programming languages.
Unix timestamps in seconds are 10 digits long (e.g. 1700000000). Millisecond timestamps are 13 digits (e.g. 1700000000000). JavaScript's Date.now() returns milliseconds. Most databases and APIs use seconds.
Math.floor(Date.now()/1000) (seconds) or Date.now() (ms). Python: import time; time.time(). PHP: time(). SQL: UNIX_TIMESTAMP() (MySQL) or EXTRACT(EPOCH FROM NOW()) (PostgreSQL).