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/ Your data stays in your browser.
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?
- Enter the start date and time in the first box, for example 2023-11-14 22:13:20.
- Enter the end date and time in the second box.
- 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.
- 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:
2023-11-14 22:13:20 --- 2023-11-15 23:14:21
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.
Related tools
Date Difference Calculator
Enter two dates and get the calendar difference in years, months and days, together with total days, weeks and the number of weekdays.
Date & Time
Duration Converter
Type a duration in whatever style you have and see it in every unit, as an ISO 8601 duration and as a readable sentence.
Date & Time
Unix Timestamp Converter
Paste an epoch value or a date and get every common representation at once: seconds, milliseconds, ISO 8601, RFC 2822, local time and relative time.
Date & Time
Add or Subtract Days from a Date
Pick a start date, choose add or subtract, an amount and a unit, and get the resulting date with its weekday.
Date & Time
UTC to Local Time Converter
Enter a UTC date and time and see it in New York, Paris, Tokyo or any other zone, with the offset and whether daylight saving time is active.
Date & Time
Date to Timestamp Converter
Type a date in almost any common format, choose the zone it is written in, and get the Unix timestamp in seconds and milliseconds.
Date & Time