Unix Timestamps Explained

By the ToolPocket team · Updated 2026-12-05 · Editorial standards

A Unix timestamp counts the seconds since 1 January 1970 UTC. It is compact, sortable and time-zone free — and completely unreadable to humans.

The number 1767225600 is not random. It is the Unix time for 1 January 2026 at 00:00 UTC. Systems use this format because a single integer is easy to store, compare and sort, and it does not care where the server is.

Seconds versus milliseconds

Current timestamps in seconds have 10 digits; in milliseconds they have 13. JavaScript's Date.now() returns milliseconds, while many APIs and databases record seconds. Mixing them up is the most common timestamp bug: a value 1000 times too large lands in the year 55000 or beyond.

Time zones are a display concern

The timestamp identifies an instant, not a clock reading. The same number can be shown as morning in London and evening in Tokyo. Store UTC, convert only when displaying.

What about leap seconds?

Unix time ignores them. Every day is treated as exactly 86,400 seconds, which is perfectly fine for normal application logic. Only specialised systems that need leap-second accuracy use other time scales.

Common formats you will see

Choosing a precision

Seconds are enough for most application data. Milliseconds matter for logs, traces and anything that must order events inside the same second; microseconds or nanoseconds appear in high-resolution timers and some databases. The unit is part of the data, not a style choice.

When integrating an API, check the documented unit instead of assuming. A seconds value multiplied by 1000 produces a syntactically valid date that is wrong by decades, and the mistake often survives testing because nobody looks at the year.

Converting securely

Use the timestamp converter to move between seconds, milliseconds, local time and UTC. It shows the ISO value alongside the local one, which is the quickest way to spot a time-zone mistake.

← All guides