Date & Time Tools · 5 min read · Updated 2026-11-20
Unix Seconds vs. Milliseconds, Pre-1970 Negatives & IANA Timezones
Unix epoch time counts elapsed seconds (or milliseconds) since 1970-01-01T00:00:00Z, excluding leap seconds.
1. Why Explicit Unit Controls Beat Blind Digit Guessing
POSIX systems and JWT `exp` claims use 10-digit seconds (~1.76e9), while JavaScript Date.now() and many browser APIs return 13-digit milliseconds (~1.76e12). Guessing strictly by digit length fails for historical dates near 1970–1973, so explicit unit selection with an optional suggestion chip is safer.
2. Pre-1970 Negatives & JavaScript Date Bounds
Dates before January 1, 1970 are represented cleanly as negative integers (for example, -86400 seconds equals 1969-12-31T00:00:00Z). JavaScript Date natively supports ±8.64e15 milliseconds from the epoch.
Try the Interactive Browser Tool
Convert Unix seconds or milliseconds (including pre-1970 negatives) across UTC and global IANA timezones.