Enter the value, read the date

Epoch-to-date conversion is a one-way formatting step: the number is an instant, and every output is that same instant rendered in a different calendar and timezone. If the outputs seem to disagree by hours, you are looking at timezone offsets, not different instants.

Common epoch values and their dates

EpochUTC dateWhat it often marks
01970-01-01 00:00:00The Unix epoch itself
10000000002001-09-09 01:46:40A round-number milestone used in tests
12345678902009-02-13 23:31:30Another classic test value
17000000002023-11-14 22:13:20Recent test fixtures
21474836472038-01-19 03:14:07Largest 32-bit signed timestamp

Values above 2147483647 overflow 32-bit time_t. If an old system reports a date in 1901, it wrapped around.

When the date looks wrong

  • Year 1970 — the value was probably milliseconds but interpreted as seconds.
  • Year 56000 — the value was seconds but interpreted as milliseconds.
  • Date off by exactly one day — a midnight UTC value formatted in a negative-offset zone.
  • Date off by a few seconds — leap-second handling or a clock that is not NTP-synced.