Epoch converter
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
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.
It was a convenient recent round date when Unix time was defined in the early 1970s.
Yes, for dates before 1970. Epoch −86400 is 31 December 1969, and software that assumed unsigned arithmetic handles it badly.
Yes, the terms are used interchangeably.
No. Every day is fixed at 86,400 seconds, so a leap second repeats a value instead of advancing past it. Twenty-seven have been inserted since 1972.
None. It names a moment, not a local time. Converting a date to epoch has to assume midnight somewhere, and this page assumes UTC.
01:46:40 UTC on 9 September 2001. A milestone that got some attention at the time.