Sooner or later every backend engineer squints at a database column holding 1795363200, multiplies by the wrong factor in JavaScript, and watches an invoice expiry jump to the year 58875—or silently drop to January 21, 1970. Unix timestamps look deceptively simple because they are plain integers, yet mixed precision across languages trips people up constantly.
10 Digits vs 13 Digits vs 19 Digits
In late 2026, current epoch timestamps sit around 1.79 billion. Counting digits tells you immediately what a column actually stores:
| Digit Count | Unit | Common Producers |
|---|---|---|
10 digits (1795363200) | Seconds | POSIX C/Unix, Python time.time() (int), PHP time(), JWT exp/iat claims, Stripe webhooks |
13 digits (1795363200000) | Milliseconds | JavaScript Date.now(), Java System.currentTimeMillis(), Kafka records |
| 16 digits | Microseconds | Postgres / BigQuery microsecond traces, Chromium Trace Events |
| 19 digits | Nanoseconds | Go time.Now().UnixNano(), Prometheus / OpenTelemetry spans |
Three Epoch Mistakes That Break Production
- Passing seconds to JavaScript
new Date(): JS expects milliseconds.new Date(1795363200)lands on January 21, 1970. Usenew Date(ts * 1000)—or inspect suspicious tokens with our JWT Decoder first. - Assuming Unix time changes with Daylight Saving Time: Epoch integers don't carry timezone offsets. Only the human calendar string rendered in
America/New_YorkorEurope/Londonshifts by an hour twice a year. Compare scheduled windows safely with the Time Zone Converter. - Mixing Discord snowflakes and Unix epochs: Chat bots and scheduled alerts often expect Discord's
<t:EPOCH:R>seconds syntax—which you can preview directly with the Discord Timestamp Generator.
// Safe normalizer when reading external logs or webhooks
const toDate = (ts) => new Date(Math.abs(ts) < 1e11 ? ts * 1000 : ts);
Frequently Asked Questions
Will the Year 2038 bug affect modern 64-bit servers?
Not on modern 64-bit runtimes, though legacy 32-bit signed integers cap out at 2147483647 (January 19, 2038). Watch old MySQL INT timestamp columns if you store long-horizon expiry dates.
How do I convert multiple timestamps from server logs at once?
Paste the column of raw timestamps directly into the Batch converter box on our Unix Timestamp tool to get a copy-ready CSV table with UTC ISO strings and relative age.