Time Duration Calculator
Exact elapsed time
Enter two date-times
Result
Calculation summary
Enter values to see the result
Elapsed-time timeline
Instant-to-instant preview
How to use this calculator
- 1Enter the start and end date-times.
- 2Choose the IANA time zone and DST ambiguity policy.
- 3Optionally deduct a break, then calculate exact elapsed time.
Formula
Elapsed seconds = absolute(end instant − start instant) − break seconds
Each wall-clock input is resolved in the selected IANA time zone before the two exact instants are subtracted.
Calculation steps
- Validate the dates, 24-hour times, time zone, and break.
- Resolve each local time to an exact instant using the selected DST policy.
- Order reversed inputs while retaining a warning.
- Subtract the instants and deduct the break.
- Decompose the result and show useful totals.
Worked example
09:00 to 17:30 with a 30-minute break equals exactly 8 hours when the UTC offset does not change.
Assumptions
- Both endpoints use one selected IANA time zone.
- Elapsed time measures exact instants, not calendar-day labels.
- The compatible DST policy chooses the earlier repeated time and moves skipped times forward.
- Break time is deducted after the absolute interval is found.
- Leap seconds are not separately counted by Unix/POSIX-style timekeeping.
Sources
Frequently asked questions
Does daylight saving time affect the result?
Yes. The inputs become exact instants in the selected zone, so an offset change can make elapsed time differ from wall-clock subtraction.
What is an ambiguous local time?
When clocks move backward, one wall-clock time can occur twice. Choose earlier or later, use compatible, or reject it.
What happens if the end is earlier?
The calculator reports the absolute duration and shows a reversed-input warning.
Can I subtract a lunch break?
Yes. Enter break minutes; the break cannot exceed the interval.
How is this different from the date difference calculator?
This tool measures exact elapsed time with time zones; the date tool compares calendar-only dates.