Every count needs a place to start. A stopwatch starts at zero when you press the button. An odometer starts at zero when the car leaves the factory. The time count running underneath most modern software works the same way: it starts at one agreed midnight, and everything since is measured as a distance from that moment.

That starting moment is the Unix epoch: midnight at the start of 1 January 1970 in UTC. The count from it, in seconds or in milliseconds, is what people mean by epoch time, Unix time or a Unix timestamp. This guide explains why the count starts there, why one plain number turned out to be a better way to store time than a readable date, and where you will meet these numbers in real systems. When you need to read one, the Unix Timestamp Converter turns it into UTC, ISO 8601 and your local time in one step.

Contents

  • Quick answer
  • A count needs a zero
  • Why one number beats a date string
  • Where the count shows up
  • Reading an epoch value with the converter
  • Worked example: from 0 to 1700000000
  • Limitations
  • Common mistakes
  • FAQs
  • Conclusion

Quick answer

Epoch time is a count of seconds since the Unix epoch: midnight at the start of 1 January 1970 in UTC. The epoch itself is 0, one second later is 1, and the count has climbed ever since. A variant counts milliseconds instead, so current values come in two sizes: 10 digits for seconds and 13 for milliseconds. The count names an instant, not a wall-clock reading, which is why the same number displays as different hours in different time zones. Paste any value into the Unix Timestamp Converter and it shows the moment in UTC, in ISO 8601 form and in your local time, with a plain relative description such as "3 days ago".

A count needs a zero

A count is only useful if everyone counts from the same place. The epoch is that shared zero. It is fixed in UTC, the zone-free reference, so the count itself never shifts with geography or season. A system in Tokyo and a system in Toronto, both counting seconds from the same midnight in 1970, produce the same number for the same moment. That agreement is the whole point of the arrangement.

The moment itself was an ordinary one: a Thursday midnight at the start of a new year. Nothing about the instant is special, and it does not need to be. What matters is that the zero is fixed, public and shared. Every timestamp is then just a distance from it, the way every odometer reading is a distance from the factory floor. The human details of a moment, the weekday, the month, the local hour, are not stored in the number at all. They are worked out later, when someone converts the count for reading.

Why one number beats a date string

A readable date looks friendlier, but it hides an ambiguity. "14 November 2023, 22:13" is one moment in London and a different moment in Tokyo, because the same wall-clock reading is a different instant in each zone. A stored date string also carries formatting choices: day first or month first, which separator, which language. Two systems can write the same moment differently, and one system can misread the other's string.

A single number has none of those problems. It names one instant, identically, on every machine that reads it. Sorting is trivial, because bigger numbers are later moments. Comparing two events is a subtraction. Storing is compact. The trade is deliberate: machines get a clean, unambiguous count, and humans get a conversion step at the moment they want to read it, rendered in their own time zone. The ambiguity is not removed from time itself; it is pushed to the display, where it can be handled honestly, instead of being baked into the stored value.

Where the count shows up

The converter's own description names the everyday habitats: logs, APIs and database rows. A server log records when each request arrived, as a timestamp. An API response carries fields for when a record was created or last changed, usually as timestamps or their ISO equivalent. A database row stores when the account signed up, when the order was placed, when the password last changed, as the same kind of count.

The pattern is identical in each case. The system stored the number because it is exact and portable, and your job is to convert it. Once you can read the date, the log line starts telling its story: this request came before that error, this record changed on a Tuesday at 22:13.

Reading an epoch value with the converter

  1. Paste a timestamp into the Unix Timestamp Converter, or press Use current time to see the count for right now.
  2. Leave the unit on Auto-detect, or force seconds or milliseconds if you know which you have.
  3. Read the UTC, ISO and local conversions together, plus the relative description.
  4. To go the other way, pick a date and time in the lower half and read its timestamp. The picked time is interpreted in your local time zone, and the result says so.

Worked example: from 0 to 1700000000

Start at the zero itself. The timestamp 0 is the epoch: Thursday, 1 January 1970 at 00:00:00 UTC. One second later the count is 1. It has been climbing, one per second, ever since.

The converter's own example shows where the count has reached. The timestamp 1700000000 converts to Tuesday, 14 November 2023 at 22:13:20 UTC, with the ISO form 2023-11-14T22:13:20.000Z. In milliseconds the same moment is 1700000000000, which the converter detects automatically from its length. Same midnight, same count, two units: the only difference between those numbers is the size of the step being counted.

Limitations

The count tells you when, and nothing else: it carries no place, no zone and no context, so every reading depends on the frame you apply to it. Auto-detection has one known edge: a millisecond value from before 2001 is smaller than 1 trillion, so it could be misread as seconds, which is why the converter lets you force the unit. The count is also not infinite in practice. Values beyond the range JavaScript dates support, about 275,000 years either way, are reported as errors rather than rendered as dates. And the reverse direction has its own frame: a date and time you pick is interpreted in your local time zone.

Common mistakes

  • Treating a timestamp as a wall-clock time. The number names an instant, not a local reading. The local hour appears only when the moment is displayed in a zone.
  • Comparing local displays instead of UTC. Two screens can show different hours for one timestamp and both be right. Compare the UTC line when you need common ground.
  • Reading a 13-digit value as seconds. Count the digits first. Ten is seconds, thirteen is milliseconds, and mixing them up produces absurd dates.
  • Forgetting the reverse direction uses your zone. A date you pick for conversion is read as local time, so the timestamp you get depends on where you are.

FAQs

What is the Unix epoch? Midnight at the start of 1 January 1970 in UTC. A Unix timestamp counts the seconds (or milliseconds) since that moment, so the epoch itself is 0 and every later moment is a larger positive number.

Is epoch time the same thing as a Unix timestamp? Yes. Epoch time, Unix time and Unix timestamp are three names for the same count: the seconds (or milliseconds) since the epoch. The name changes, the number does not.

Does a timestamp include a time zone? No. The count names an instant and carries no zone. UTC and ISO values are zone-free, while a local display applies your device's zone, which is why the same timestamp can show different hours in different places.

Where do epoch timestamps appear in practice? In logs, APIs and database rows: anywhere a system records when something happened. The converter exists for exactly those moments, turning the stored count back into a readable date.

How far can the count run? A long way, but not forever. Values beyond the range JavaScript dates support, about 275,000 years either way, are reported as errors. Real timestamps sit nowhere near that range.

Conclusion

Epoch time is a simple arrangement: one fixed midnight in 1970, counted in seconds, shared by every system that uses it. The date strings humans prefer turned out to be ambiguous travellers, so software stores the number and leaves the formatting to the moment of reading. Once you know the zero and the unit, the count reads plainly. The unit is where most confusion lives, and the companion guide How to Read a 10-Digit and 13-Digit Timestamp covers it in full. The Developer Tools archive collects the other formats and encodings you will meet alongside timestamps.