Skip to content

Time Difference Calculator

Enter a start and an end date-time and get the exact elapsed time, broken down into days, hours, minutes and seconds and as totals.

Processed locally in your browser

Options

Any IANA name, for example Asia/Kathmandu or America/Argentina/Cordoba.

Only matters for dates like 03/04/2024 where both parts are 12 or less.

0 chars · 0 lines
0 chars · 0 lines
The result will appear here.

What is Time Difference Calculator?

Elapsed time is the real duration between two instants, measured in seconds. This calculator parses both date-times, subtracts them and presents the result as a breakdown (for example 1 day, 1 hour, 1 minute, 1 second) and as total days, hours, minutes, seconds and milliseconds.

Choose a time zone for inputs without an offset. In a zone with daylight saving, the count is real elapsed time: between 01:00 and 04:00 on the night clocks go forward, only two hours have passed. If the end is earlier than the start, the result is shown with a negative direction.

How does it work?

  1. Enter the start date and time in the first box, for example 2023-11-14 22:13:20.
  2. Enter the end date and time in the second box.
  3. Select the time zone in which both are written, or type an IANA name; add Z or an offset to a line to override it.
  4. Read the breakdown and the totals, and copy them.

Common use cases

  • Measuring how long a deployment, outage or batch job ran from its start and end log lines.
  • Computing elapsed hours between two shifts for a timesheet.
  • Finding how long a JWT, cache entry or session was valid.
  • Checking a time-zone-sensitive difference across a daylight saving change.

Examples

Try this input in the tool above:

Input
2023-11-14 22:13:20

---

2023-11-15 23:14:21
Output
1d 1h 1m 1s

Privacy

Time Difference Calculator runs entirely in your browser. The text or files you provide are processed on your device and are not uploaded, logged or stored on our servers.

Limitations

Only exact elapsed time is computed: months and years are not calendar-aware here (use the date difference tool), and business hours or holidays are not considered.

Frequently asked questions

Why is the difference one hour off across a clock change?

With a DST zone selected, the tool measures real elapsed time, so a day with 23 or 25 hours is counted as such. Choose UTC if you want to ignore local clock changes.

Can the end be before the start?

Yes. The tool reports the absolute breakdown and states that the end is before the start.

Can I include seconds and fractions?

Yes, values like 08:00:00.250 are read with millisecond precision and included in the totals.

More tools in Date & Time →