Read Unix timestamps correctly illustration

Read Unix timestamps correctly

Translate machine times into readable dates.

Unix timestamps commonly count seconds since 1970-01-01 UTC, while JavaScript often uses milliseconds.

Check the input unit before conversion and compare the displayed time zone with UTC.

A timezone mismatch can shift the displayed calendar date.

Open related tool