Skip to content

The basics · Lesson 5 of 10

Unix Time Explained for Everyone

A Unix timestamp is a count of seconds since the start of 1970. What the big number means, why computers use it, and why it comes in 10, 13, 16 or 19 digits.

A date hiding in a number

You download a list of your orders, open a link, or look at an error message, and where you expect a date there is this:

1700000000

It is a date and a time. Computers often write them as one number, called a Unix timestamp, Unix time or epoch time.

A 10-digit Unix timestamp, written out as a date and time.
You type
1700000000
The converter shows
November 14, 2023 at 10:13:20 PM MMMM DD, YYYY at h:mm:ss A

Open in the converter: 1700000000 → November 14, 2023 at 10:13:20 PM

What the number counts

It counts seconds. The count started at midnight UTC at the beginning of 1 January 1970, and it goes up by one every second.

  • 0 is the starting point: January 1, 1970 12:00 AM, UTC.
  • 86400 is the number of seconds in a day, so it is one day later: January 2, 1970 12:00 AM.
  • 1700000000 is one billion seven hundred million seconds after the start.

The year 1970 has no special meaning. The people who built the Unix operating system needed a starting point and picked a recent round date. That starting point is called the epoch.

Why computers use it

  • It has no time zone. The count is the same everywhere on Earth. 1784127600 is July 15, 2026 3:00 PM in UTC and July 15, 2026 11:00 AM in New York: one moment, shown on two clocks.
  • It cannot be misread. There are no month names, no AM or PM, and no doubt about whether the day or the month comes first.
  • Arithmetic is easy. The later of two moments is the bigger number, and the time between them is one subtraction.

The cost is that a person cannot read it. You need a converter in both directions:

A date and time in UTC, turned into a Unix timestamp.
You type
2026-07-15 15:00 in UTC
The converter shows
1784127600

Open in the converter: 2026-07-15 15:00 → 1784127600

10, 13, 16 or 19 digits

Some systems count in smaller steps than a second, which makes the number longer. All four of these are the same moment, July 15, 2026 3:00 PM UTC:

DigitsCountsThe numberThe converter reads it as
10Seconds1784127600Unix Timestamp (sec)
13Milliseconds (thousandths of a second)1784127600000Unix Timestamp (ms)
16Microseconds (millionths)1784127600000000Unix Timestamp (µs)
19Nanoseconds (billionths)1784127600000000000Unix Timestamp (ns)

Ten digits (seconds) and thirteen digits (milliseconds) are the ones you will meet most. Web pages and phone apps usually count milliseconds.

Nothing in the number says which unit it uses. If a program reads it in the wrong one, the date lands in January 1970 or tens of thousands of years in the future. A date in 1970 on a receipt or in a spreadsheet is nearly always this mistake. How to tell Unix seconds from milliseconds shows how to fix it.

Reading one at a glance

You cannot work out the exact date in your head, but you can place it roughly. A ten-digit number that starts with 17 is a moment between November 2023 and January 2027; one that starts with 18 comes after that, from January 2027. The example at the top of this page, a 17 followed by eight zeros, is the first of them. A number that starts with 16 is earlier, and one with thirteen digits is the same kind of date counted in milliseconds.

The year 2038

Many older computers and devices store this count in a space that holds numbers up to 2147483647. The count reaches that value on January 19, 2038 at 3:14:07 AM, UTC. One second later it no longer fits, and a system that has not been updated jumps back to the year 1901. This is the “year 2038 problem”. Phones and computers made in recent years use a much larger space and are not affected. Some older machines and built-in devices still need the fix.

The small print

The count is defined in the POSIX standard, which calls it “seconds since the Epoch”. It treats every day as exactly 86,400 seconds long and leaves out leap seconds. Leap years and leap seconds explains what that means.

Try it

Paste any Unix number into the converter. It counts the digits, says which unit it read, and shows the date in the city you pick.

Open a 13-digit number in the converter

Where to go next