Compare two Unix epoch timestamps or datetimes — auto-detect seconds vs milliseconds and see the gap in seconds, minutes, hours, and days.
Inputs
Difference (B is after A)
Related tools
DevOps and backend engineers often need the epoch difference between two log lines, webhook deliveries, or database rows. Paste raw Unix values from CloudWatch, Splunk, or Postgres — the tool normalizes seconds and milliseconds automatically.
For a live clock, visit Current Unix Time. For timezone-aware conversion, use Epoch Converter.
How do I calculate timestamp difference? Enter two Unix timestamps or datetimes. The tool auto-detects seconds vs milliseconds, computes the gap, and shows seconds, minutes, hours, and days.
What is epoch difference? Epoch difference is the elapsed time between two Unix timestamps — the same value whether you call it timestamp difference or epoch difference.
Does it support milliseconds? Yes. Values with 13+ digits are treated as milliseconds; 10-digit values are seconds. ISO date strings are parsed as wall-clock instants.
Can I compare against now? Enable “Use current time for B” to diff any timestamp against the live clock without typing the second value.