Developer Time

Epoch converter

Direction
Epoch time
UTC date and time 2001-09-09T01:46:40Z
Epoch is 1 January 1970, 00:00:00 UTC
In words Sunday 9 September 2001
Day of the week Sunday
Read as read as seconds
Date only 2001-09-09
Note
Negatives are valid, and often mishandled
Advertisement
320 × 100

The Unix epoch is midnight UTC on 1 January 1970, and epoch time counts seconds from it. Epoch 1000000000 was 01:46:40 UTC on 9 September 2001: a moment widely noted at the time as a round-number milestone. The next such marker, 2000000000, falls on 18 May 2033.

How to convert epoch time

1 Paste the epoch value, including the minus sign if it has one.
2 Read the date and time, which are always UTC — an epoch value carries no timezone of its own.
3 Check the "read as" row: a thirteen-digit value is milliseconds and is treated as such.
4 Switch to the other tab to go the other way, from a date to its epoch second.

Negative epoch values are perfectly valid and represent dates before 1970. Epoch −86400 is 31 December 1969. A surprising amount of software mishandles them, either rejecting the value or producing a date decades out, because the implementation assumed unsigned arithmetic. It is worth testing if you are handling historical dates rather than log timestamps. The other thing epoch time is not is a count of elapsed seconds. Every day in Unix time is defined as exactly 86,400 seconds, so when a leap second is inserted the clock repeats a value rather than counting past it. Twenty-seven leap seconds have been added since 1972, which means the real interval between two epoch values that far apart is 27 seconds longer than the subtraction says. That is deliberate; it keeps epoch arithmetic to plain division and lets every date convert without a lookup table — and it is why epoch time is not the same thing as atomic time. International agreement in 2022 committed to abandoning leap seconds by 2035, at which point the discrepancy stops growing and simply stays where it is.

Questions

Midnight UTC on 1 January 1970. Epoch time counts seconds from that moment.

Advertisement
300 × 250
Was this tool any good?
Internal signal only · I use it to find the tools worth rebuilding