# Unix Timestamp

> A time written as the seconds since 1 January 1970 UTC. One number, the same everywhere.

**Field:** Software Development  
**Category:** Files & Formats  
**Also known as:** Unix Time, Epoch Time, POSIX Time

## Think of it like

Think of it like a stopwatch that was started long ago. It has never stopped.

## Definition

A Unix timestamp counts the seconds since midnight on 1 January 1970, in UTC. That starting point is called the epoch. So any moment is one whole number, like 1700000000. It is the same number in every time zone. Computers find it easy to store, compare and subtract. Some systems count in milliseconds instead, which adds three digits.

## Example

Jack's app logs 1700000000 for a sign-up. A tool reads it back as 14 November 2023, 22:13 UTC.

## Example code

```console
$ date -u -d @1700000000 '+%Y-%m-%d %H:%M:%S'
2023-11-14 22:13:20
```

The number 1700000000 turned back into a date and time people can read.

## Why it matters

Two timestamps can be subtracted to get the seconds between them. No time zones or calendars get in the way.

## Common mistake

Mixing up seconds and thousandths of a second. Read the wrong way, a time lands far in the future.

## Three principles

- **Counts seconds.** From the start of 1970 in UTC.
- **No time zones.** One number everywhere on Earth.
- **Watch the unit.** Milliseconds are a thousand times bigger.

## Related terms

- [ISO 8601 Date Format](https://learn.benibix.com/term/development/iso-8601)
- [Universally Unique Identifier (UUID)](https://learn.benibix.com/term/development/uuid)
- [Unix](https://learn.benibix.com/term/development/unix)
- [Event Time](https://learn.benibix.com/term/data/event-time)

## Taught in

- [UUIDs, Unix Time and ISO 8601](https://learn.benibix.com/learn/development-formats/uuids-unix-time-and-iso-8601): File Formats, 10/11

![On the top row, the number 1700000000, marked Unix timestamp, seconds since 1 January 1970 UTC, is joined by a dashed line marked same moment to 2023-11-14T22:13:20Z, marked ISO 8601, year first, T, then time, Z for UTC. Below, a lit-up box holds the UUID 4149014e-eabb-4fab-a179-5177233cc0e5, with a note that it has groups of 8, 4, 4, 4 and 12 hex digits and the 4 starting the third group means version 4.](https://learn.benibix.com/diagrams/dev2-time-ids.svg)

---

Source: https://learn.benibix.com/term/development/unix-timestamp
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-18
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
