Skip to content
SymboxiTools & Games for Everyone

Blog

Unix Timestamp to Date: Seconds, Milliseconds and UTC Explained

Unix time counts elapsed seconds from 1970-01-01 00:00:00 UTC, using the conventional POSIX treatment of leap seconds. Many JavaScript APIs instead use milliseconds. Confusing the units can produce dates decades or thousands of years away from the intended date.

Symboxi TeamSymboxi — Free online tools and browser games2 min read

What to know

Unix time counts elapsed seconds from 1970-01-01 00:00:00 UTC, using the conventional POSIX treatment of leap seconds. Many JavaScript APIs instead use milliseconds. Confusing the units can produce dates decades or thousands of years away from the intended date.

Worked example

The timestamp 1704067200 in seconds is 2024-01-01 00:00:00 UTC. The equivalent millisecond value is 1704067200000. In India the same instant is 05:30 on January 1. The timestamp itself does not change with the display zone.

How to use the tool

Open the converter, enter the timestamp and select the correct unit. Compare UTC and local output. When converting a date back to epoch time, include an explicit offset or Z if the input must represent a precise instant.

Frequently asked questions

Are all 13-digit timestamps milliseconds? Not necessarily; digit count is a clue, not proof. Does Unix time store a time zone? No, the zone is used when displaying the instant.

Try the free tool

Open unix timestamp converter

Related tool: time zone converter. Explore more practical guides.