Unix timestamp reference table
Four lookup tables: values worth remembering, unit widths, which unit your platform returns, and how one instant looks at different offsets.
Boundary and reference timestamps
| Timestamp (s) | Date and time (UTC) | Why it is useful |
|---|---|---|
| 0 | 1970-01-01T00:00:00Z | the epoch itself; this converter rejects it because input must be positive |
| 1 | 1970-01-01T00:00:01Z | smallest integer the converter accepts |
| 1000000000 | 2001-09-09T01:46:40Z | first ten-digit value, a common test case |
| 1500000000 | 2017-07-14T02:40:00Z | round half-billion mark |
| 1700000000 | 2023-11-14T22:13:20Z | frequently used in tutorials |
| 1767225600 | 2026-01-01T00:00:00Z | start of 2026 in UTC |
| 1800000000 | 2027-01-15T08:00:00Z | start of the 1.8 billion range |
| 2000000000 | 2033-05-18T03:33:20Z | two billion seconds |
| 2147483647 | 2038-01-19T03:14:07Z | signed 32-bit maximum |
| 2147483648 | 2038-01-19T03:14:08Z | overflows a signed 32-bit clock |
| 4102444800 | 2100-01-01T00:00:00Z | start of the next century |
| 1000000000000 | 2001-09-09T01:46:40Z | read as milliseconds, not seconds, because it equals 1e12 |
The last row is the one that surprises people. 1e12 is the switch between the two units, so the same string of digits that would mean year 33658 in seconds is rendered as 2001 when it reaches the millisecond branch.
Digit width and unit
1 second = 1,000 ms = 1,000,000 µs = 1,000,000,000 ns
| Unit | Multiplier on seconds | Digits in 2026 | Typical source |
|---|---|---|---|
| seconds | × 1 | 10 | Unix time(), PHP time(), MySQL UNIX_TIMESTAMP() |
| milliseconds | × 1,000 | 13 | JavaScript Date.now(), Java currentTimeMillis() |
| microseconds | × 1,000,000 | 16 | some database exports and tracing systems |
| nanoseconds | × 1,000,000,000 | 19 | Go UnixNano(), Linux clock_gettime() |
Digit width is the fastest check when no unit is documented. Count the characters before converting: ten digits is seconds until the year 2286, thirteen digits is milliseconds until 2286 as well, because both grow by one digit at the same moment. A value with sixteen digits is almost always microseconds from a tracing system, and a nineteen-digit value is nanoseconds that cannot be stored exactly as a JavaScript number.
Nanoseconds exceed 2^53, the largest integer JavaScript can hold exactly. Read them as a string or a BigInt, never as a plain number.
What each platform returns
| Platform | Call | Unit |
|---|---|---|
| JavaScript | Date.now() | milliseconds |
| Java | System.currentTimeMillis() | milliseconds |
| Python | time.time() | seconds, floating point |
| PHP | time() | seconds |
| Go | time.Now().Unix() | seconds |
| MySQL | UNIX_TIMESTAMP() | seconds |
| PostgreSQL | EXTRACT(EPOCH FROM now()) | seconds, numeric |
Mixing these is the usual cause of a date in 1970 or in 56000. If a millisecond value is passed where seconds are expected, the result lands about 50,000 years ahead; if seconds are passed where milliseconds are expected, the result lands in January 1970.
One instant, five offsets
| Offset | Local time for 1700000000 | Where it applies |
|---|---|---|
| UTC+0 | 2023-11-14 22:13:20 | United Kingdom in winter |
| UTC+1 | 2023-11-14 23:13:20 | Germany in winter |
| UTC+5:30 | 2023-11-15 03:43:20 | India |
| UTC+8 | 2023-11-15 06:13:20 | China, Singapore |
| UTC+9 | 2023-11-15 07:13:20 | Japan, South Korea |
| UTC−5 | 2023-11-14 17:13:20 | US Eastern in winter |
The offset column is not stored in the timestamp. It comes from the time zone rules of the machine doing the rendering, which is why the same number can display differently on a laptop, a server in another region and a phone that has just crossed a border.
How to use these tables
- Check the digit count before converting: 10 digits means seconds, 13 means milliseconds.
- Use 1767225600 as a sanity check for year boundaries; it is 2026-01-01T00:00:00Z.
- Treat any result beyond year 3000 as a unit error, not a valid future date.
- Keep the ISO string with the Z suffix in logs, and convert to local time only for display.
Values above 2147483647 are fine in this converter but may fail in older databases and 32-bit libraries. Widen the column before you need it.