What Is a Unix Timestamp?
Published 2/17/2026 · 2 min read · Developer tools
Daniel Okonkwo — Front-end developer and tech writer at OneKitly
Web performance · File formats
Checked against 2 sources
A Unix timestamp is a single number: the count of seconds elapsed since midnight UTC on January 1, 1970, called the epoch. For example 1735689600 is January 1, 2025. Computers store time this way because one integer is easy to compare, sort and do math on, and it is timezone-independent — you convert to a local date only for display.
A Unix timestamp counts the seconds since January 1, 1970 UTC. Learn why computers use it, how to convert it, and the 2038 problem.
The epoch: a common zero point
Every clock needs a starting point. Unix systems chose midnight UTC on January 1, 1970, and count seconds forward from there. Times before it are negative numbers. Because the whole computing world shares this zero, systems can exchange a timestamp and agree on the exact instant without ambiguity.
Seconds vs milliseconds
Classic Unix time is in seconds, but many systems (notably JavaScript) use milliseconds — 1000 times larger. If a timestamp looks about 1,000× too big, it is probably in milliseconds; divide by 1000 to get seconds before converting. A quick sanity check: a 10-digit number is seconds today, a 13-digit one is milliseconds.
The year 2038 problem
Older systems store the timestamp in a signed 32-bit integer, which overflows on January 19, 2038, when the count exceeds about 2.1 billion. Such systems would wrap around to a negative number and misread the date. The fix is a 64-bit integer, which pushes the limit billions of years away; modern platforms have largely moved to it.
Frequently asked questions
- Why 1970?
- It was a round, recent date when Unix was being developed around 1970, convenient as a starting point. The choice stuck and became a near-universal standard.
- Does a timestamp include a timezone?
- No — it is always counted in UTC. You apply a timezone offset only when converting the number to a human-readable local date and time.
- How do I convert one by hand?
- It's tedious by hand — most people paste the number into a converter. Programmatically, most languages have a built-in function (for example new Date(seconds * 1000) in JavaScript).
- Do leap seconds affect it?
- Unix time ignores leap seconds by design — it assumes every day is exactly 86,400 seconds. This keeps arithmetic simple, at the cost of not being a perfect count of physical seconds.
Articles you may find interesting
All guides →Related tools
Sources
Spotted a mistake in this article?