← All guides

FIELD NOTES · 3 min read

Unix timestamps: seconds, milliseconds, and time zones

Convert timestamps without mixing units or guessing whether a date is UTC or local time.

Maintained by Wei2 Tools · Updated

Choose the unit before reading a timestamp

Unix time starts at 1970-01-01T00:00:00Z. A value of 1000 means 00:16:40 UTC when interpreted as seconds, but 00:00:01 UTC when interpreted as milliseconds. Digit count can suggest a unit for contemporary dates, but it is not a reliable rule for every date. Check the producing system’s documentation.

Use an explicit UTC offset

Open Timestamp converter, select seconds or milliseconds, and convert the number to UTC and browser local time. For the reverse direction enter an ISO date with Z or an offset. The date 1970-01-01T08:00:00+08:00 is the same instant as 1970-01-01T00:00:00Z, so both convert to zero seconds.

Separate an instant from a local clock reading

The local display follows the browser’s time zone. A fixed offset such as +08:00 does not describe a region’s daylight-saving rules. This tool rejects dates without a time zone and invalid calendar dates such as 2026-02-30. Seconds output rounds down; select milliseconds if subsecond precision matters.

References and further reading

Feedback