Epoch Difference Calculator
The gap between two timestamps
Subtract one timestamp from another and get the answer in seconds and in human units — plus the same difference expressed in each of the four common precisions.
Questions people ask
The things that come up about epoch difference calculators, answered plainly.
What if my two timestamps are in different units?
The page detects it from the digit counts and says so, rather than reporting a difference of fifty thousand years. Mixed units are the usual cause of an absurd duration in a log.
Is subtracting timestamps safe across daylight saving?
Completely. Unix time has no zones and no daylight saving in it — the difference between two timestamps is exact elapsed seconds, which is why durations should always be computed from timestamps rather than from local times.
Related tools
Seconds, milliseconds, microseconds and nanoseconds, in both directions.
Seconds Between DatesThe count that Unix time itself is measured in — an exact second difference between two instants, with the millisecond, microsecond and nanosecond totals beside it.
Unix Timestamp ConverterPaste a timestamp and get the date; paste a date and get the timestamp. Seconds, milliseconds, microseconds and nanoseconds are detected from the digit count, and the guess is shown so you can override it.
Duration CalculatorA duration in every unit from nanoseconds to decades, with the approximate ones flagged as approximate — because a month has no fixed length and any tool that pretends otherwise is guessing.
Timestamp ValidatorChecks a numeric timestamp for the mistakes that actually happen: the wrong unit, a 32-bit overflow, a sentinel value, or a date nowhere near where it should be.