DevTools Logo
All posts

Mastering Unix Epoch Timestamps, Timezones, and ISO 8601

August 15, 2026 · DevTools

timestamp
timezones
epoch
datetime

Mastering Unix Epoch Timestamps, Timezones, and ISO 8601

Unix Epoch time measures the number of seconds elapsed since 00:00:00 UTC on January 1, 1970. It is the universal language of database logs, JWT tokens, and distributed systems.

Convert timestamps and timezones seamlessly:

Seconds vs Milliseconds

  • Seconds (10 digits): 1755291600 (Standard in Unix, Python, PHP, JWTs).
  • Milliseconds (13 digits): 1755291600000 (Standard in JavaScript Date.now(), Java).
// Current time conversions in JavaScript
const nowMs = Date.now(); // 13 digits
const nowSec = Math.floor(Date.now() / 1000); // 10 digits
const isoString = new Date(nowMs).toISOString(); // "2026-08-15T19:00:00.000Z"

Convert timestamps in your browser with the Timestamp Converter.

Tools mentioned in this post