1. Unix Seconds vs. JavaScript Milliseconds
The POSIX Unix epoch measures elapsed seconds since 00:00:00 UTC on January 1, 1970 (excluding leap seconds). Backend runtimes such as Go, Python, PostgreSQL, and standard JWT `iat`/`exp` claims emit 10-digit second timestamps, whereas JavaScript `Date.now()` and browser performance APIs emit 13-digit millisecond epochs.
Passing a 10-digit second value directly into `new Date()` lands silently in January 1970, causing subtle billing, expiration, and caching bugs. Toolbly auto-detects both 10-digit and 13-digit resolutions so you see exact dates immediately.
// Normalize 10-digit seconds vs 13-digit milliseconds
const ms = epoch < 1e12 ? epoch * 1000 : epoch;
const isoUtc = new Date(ms).toISOString();2. Standardizing on ISO 8601 in UTC
Storing and transmitting API timestamps in UTC using strict ISO 8601 format (explicitly terminated with a `Z` or `+00:00` offset) keeps distributed server logs, cron jobs, and client dashboards synchronized regardless of regional daylight saving transitions.
Toolbly displays UTC ISO 8601 alongside your local system timezone and relative time delta, and includes a live epoch ticker for copying current timestamps during API testing.
3. Epoch Integers vs. ISO 8601 Strings
Choosing the right timestamp representation keeps databases compact and API responses unambiguous:
64-Bit Unix Epoch Integers
Compact numeric sorting and arithmetic in databases and JWT exp/iat claims; always use INT64/BIGINT to avoid 2038 overflow.
ISO 8601 UTC Strings
Human-readable standard (2026-05-04T00:00:00Z) ideal for REST/JSON payloads, audit logs, and cross-timezone debugging.
Pro tip: Use the Live Epoch readout to quickly mint fresh expiration timestamps when testing authentication tokens.
4. Offline Client-Side Date Parsing
All epoch conversions, timezone formatting, and relative-time deltas run locally using your browser V8 Date engine, letting you inspect production log timestamps and token claims offline with zero server requests.