Unix Timestamp Converter
Convert Unix epoch timestamps (seconds or milliseconds) to human-readable dates, and convert any date back to a timestamp.
Current Unix time
—
—
Timestamp → Date
UTC
—
Local (your timezone)
—
ISO 8601
—
Relative
—
Date → Timestamp
Seconds
—
Milliseconds
—
Common Unix timestamp gotchas
- Seconds vs. milliseconds. JavaScript and Java use milliseconds (
Date.now()). Python, Ruby, Go, and most Unix utilities use seconds. Mixing the two by a factor of 1000 is a frequent bug. - Negative timestamps. Dates before 1970-01-01 produce negative numbers. Most systems accept them, but some databases and APIs do not.
- Leap seconds. The Unix timestamp definition technically excludes leap seconds, so it is not a strict count of SI seconds. For most applications this difference is invisible.
- Year 2038 (Y2K38). 32-bit signed timestamps overflow on January 19, 2038 03:14:07 UTC. 64-bit systems are unaffected; check that any embedded device or legacy database column uses at least a 64-bit (or unsigned 32-bit, which buys until 2106) representation.
Quick reference
| Date | Unix timestamp |
|---|---|
| 1970-01-01 00:00:00 UTC (epoch) | 0 |
| 2000-01-01 00:00:00 UTC | 946684800 |
| 2024-01-01 00:00:00 UTC | 1704067200 |
| 2038-01-19 03:14:07 UTC (Y2K38) | 2147483647 |