What a Unix timestamp is
A Unix timestamp counts the seconds since 1 January 1970 at 00:00:00 UTC, called the Unix epoch. It's the same number everywhere in the world at the same moment, which is why APIs, databases and logs use it. Paste a timestamp to see it in your local time, in UTC and in ISO 8601, or enter a date to get its timestamp.
Seconds or milliseconds?
A current timestamp in seconds has 10 digits (for example 1767225600). JavaScript's Date.now() and many Java APIs use milliseconds, which have 13 digits (1767225600000). Mixing them up is one of the most common date bugs: a seconds value read as milliseconds lands in January 1970, and the reverse lands tens of thousands of years in the future.
Get the current timestamp in code
JavaScript Math.floor(Date.now() / 1000) Python int(time.time()) PostgreSQL SELECT EXTRACT(EPOCH FROM now()); MySQL SELECT UNIX_TIMESTAMP(); Bash date +%s
Time zones and ISO 8601
A timestamp has no time zone; it's converted to one only when displayed. ISO 8601 strings carry the offset explicitly: 2026-01-01T00:00:00Z is UTC (the Z means zero offset) and 2026-01-01T05:30:00+05:30 is the same moment in India. Store and send times in UTC or as timestamps, and convert to local time only for display.
The year 2038 problem
Systems that store timestamps as a signed 32-bit integer overflow after 2147483647, which is 19 January 2038 at 03:14:07 UTC. Modern systems use 64-bit values, but old databases, file formats and embedded devices may still be affected.