Look at database records, API responses or log files and you will often find dates written as ten-digit numbers like 1760745600. Developers love them; everyone else finds them baffling. So what is a Unix timestamp, why is it so popular, and how do you turn one into a normal date? This guide covers the essentials, including the famous year 2038 problem.
The definition
A Unix timestamp – also called epoch time or POSIX time – is the number of seconds that have passed since 00:00:00 UTC on 1 January 1970, a moment known as the Unix epoch.
- 0 = 1 January 1970, 00:00:00 UTC
- 1,000,000,000 = 9 September 2001, 01:46:40 UTC
- 1,767,225,600 = 1 January 2026, 00:00:00 UTC
- 1,800,000,000 = 15 January 2027, 08:00:00 UTC
So 1760745600 is 18 October 2025 at midnight UTC.
Why computers use it
- One simple number – easy to store, sort and compare.
- No time zones inside – it always counts from UTC, so a server in Lagos and one in London agree on the exact moment.
- Easy maths – add 86,400 to move forward one day, or subtract two timestamps to get a duration in seconds.
When displaying the time to a person, software converts the timestamp to their local time zone. See how to convert time zones for why that matters.
Seconds vs milliseconds
Watch the number of digits:
- 10 digits – seconds (Unix, PHP, Python, most databases)
- 13 digits – milliseconds (JavaScript's
Date.now(), Java)
If a converted date lands in the year 57,000 or in 1970, you probably mixed them up – divide or multiply by 1,000.
Converting in code
- JavaScript:
new Date(1760745600 * 1000).toISOString() - PHP:
date('Y-m-d H:i:s', 1760745600) - Python:
datetime.fromtimestamp(1760745600, tz=timezone.utc) - MySQL:
FROM_UNIXTIME(1760745600)
And to get the current timestamp: Math.floor(Date.now() / 1000) in JavaScript, time() in PHP and int(time.time()) in Python.
The year 2038 problem
Many older systems store timestamps as a signed 32-bit integer, whose maximum value is 2,147,483,647. That moment is 19 January 2038 at 03:14:07 UTC. One second later, those systems overflow and may jump back to 1901. Modern operating systems and languages use 64-bit timestamps, which will not run out for billions of years, but old embedded devices and legacy databases still need checking.
Leap seconds and precision
Unix time ignores leap seconds, so every day is treated as exactly 86,400 seconds. For everyday applications this is exactly what you want; specialised scientific systems handle leap seconds separately.
Convert any timestamp instantly
The free Unix Timestamp Converter turns timestamps into readable dates and dates back into timestamps, detects seconds or milliseconds automatically and shows the result in UTC and your local time.
Related tools:
- Time Zone Converter – compare the same moment across cities
- Date Calculator – count days between dates
- JWT Decoder – read the iat and exp timestamps inside tokens; see what is a JWT
Frequently asked questions
Can Unix timestamps be negative? Yes. Negative numbers represent dates before 1970.
Does a Unix timestamp include a time zone? No. It always represents a moment in UTC; time zones apply only when displaying it.
What is ISO 8601? A human-readable standard date format such as 2026-10-19T08:00:00Z, often used alongside timestamps in APIs.
Summary
So, what is a Unix timestamp? The number of seconds since 1 January 1970 UTC – a simple, time-zone-free way for computers to store moments in time. Watch for milliseconds, use 64-bit storage to avoid the 2038 problem and convert to local time only for display. Convert any value instantly with the free Unix Timestamp Converter.