How timestamps work.
A Unix timestamp counts elapsed seconds from 1970-01-01T00:00:00Z. It describes an instant rather than a particular clock face. The same instant can appear as different local dates and times in different time zones.
Seconds or milliseconds?
Many systems use seconds. JavaScript's Date uses milliseconds: one second is 1,000 milliseconds. Epoch makes the unit an explicit choice rather than guessing from the number of digits. A value of 1000 can mean 1,000 seconds or 1,000 milliseconds, depending on that choice.
| Value | Unit | UTC result |
|---|---|---|
| 0 | seconds | 1970-01-01T00:00:00.000Z |
| -1 | seconds | 1969-12-31T23:59:59.000Z |
| 1000 | milliseconds | 1970-01-01T00:00:01.000Z |
UTC and local time
The UTC result uses ISO 8601 with a Z suffix. The local result uses your browser's locale and configured time zone, including the applicable daylight-saving rules. The time-zone name appears below it. A timestamp itself does not store a time zone. Changing the browser's time-zone setting changes the local display, not the instant.
Accepted input
Enter a finite signed decimal integer. Leading and trailing spaces are ignored. A leading + or - is allowed. Fractional values, exponent notation, commas, date strings, Infinity and NaN are rejected. Select milliseconds if you need sub-second precision.
The integer must be safely represented by JavaScript, and the resulting milliseconds must be within the inclusive Date range of -8640000000000000 through 8640000000000000. This corresponds to -8640000000000 through 8640000000000 seconds. Dates outside that range cannot be converted. For years outside 0000–9999, ISO output uses an expanded signed year.
Limits of the clock
This tool follows JavaScript's Unix-style time model, which does not represent leap seconds as a distinct extra second. It does not synchronize your clock, identify a source timestamp's original unit or validate the accuracy of the system that produced it.