Publisher notes · reviewed 10 September 2026
Unix time is seconds, unless it is milliseconds
Unix time counts seconds since 1970-01-01T00:00:00Z, excluding leap seconds in the POSIX definition. JavaScript `Date.now()` is milliseconds. Mixing them shifts dates by a factor of 1000.
How to tell which unit you have
A 10-digit integer near 1.7e9 is seconds in the 2020s. A 13-digit integer near 1.7e12 is milliseconds. If a converted date lands in 1970 or 56000 AD, you picked the wrong unit. The tool should expose both; if you pasted a float, check whether the API used seconds with a fractional part.
Local timezone display uses the browser zone. Two reviewers in IST and UTC will see different clock times for the same instant. Store UTC in APIs; display local only at the edge.
Worked examples
1 January 2025 00:00 UTC
Unix seconds 1735689600. Milliseconds 1735689600000. If you feed the seconds value into `new Date(n)` in JavaScript you get a 1970 date because Date expects ms.
Limits of this page
- Leap seconds are not modelled.
- Historical timezone rule changes depend on the browser ICU data.