Where the epoch starts
A Unix timestamp counts seconds elapsed since midnight UTC on 1 January 1970, ignoring leap seconds. Ten digits mean seconds, thirteen mean milliseconds, a factor of a thousand apart. Present values sit between 1.7 and 1.8 billion. The unit field offers auto-detection by digit count, seconds or milliseconds, so mixed input separates cleanly — useful when cleaning logs.
Steps
- Pick the direction: timestamps to dates, or dates to timestamps.
- Choose the display zone, UTC+8 or UTC.
- Paste one value per line, freely mixing seconds, milliseconds and ISO-like datetimes.
- Convert; each line returns local time, UTC and milliseconds, and a malformed line is flagged alone.
- Copy results or export CSV; the single-value field gives a zone comparison for one timestamp.
Why one second yields two dates
A timestamp is an absolute instant with no zone attached. Rendering it as a date requires choosing a zone, so the same value reads as one afternoon in UTC+8 and eight hours earlier in UTC. Log correlation, database storage and front-end display all trip here: store absolute instants, apply zones only when displaying. Reconciliation should compare in UTC and convert at the presentation layer.
Tolerance and boundaries
Per-line tolerance means blanks, prose and out-of-range numbers are flagged rather than aborting the batch, so run once to inspect failures before deciding to fix or discard. Auto-detection can misjudge ambiguous short values that could be seconds or milliseconds, which is why explicit units exist. A signed 32-bit seconds field overflows on 19 January 2038, so legacy schemas need widening or millisecond storage.
Common problems
Milliseconds read as seconds produce dates tens of thousands of years out — obvious singly, easy to miss in bulk. Treating local time as UTC shifts everything eight hours. Spreadsheet imports rewrite bare numbers as scientific notation or dates unless the column is text. Daylight saving makes fixed offsets wrong for some regions and months. And blank lines coerced to zero yield 1970, so drop them as failures.