Can the duration span multiple days?
Yes. Cross-midnight and multi-day intervals are supported.
Measure how much time passes between a start and end date-time—ideal for shifts, recordings, and schedules.
Enter start and end date-times. End can be earlier than start to show a negative duration.
How to use Time Duration Calculator, plus the formulas and logic behind the results.
The Time Duration Calculator finds the exact elapsed interval between two moments. Use it for work shifts, media length, travel legs, or any timed event that crosses hours or days.
total_seconds = end − startdays = total_seconds ÷ 86,400hours/minutes/seconds = remainder after each larger unitDuration breakdown
Both inputs are parsed as date-times, converted to Unix timestamps, and subtracted. The absolute second difference is split into days, hours, minutes, and seconds; the sign shows direction.
Times are interpreted in the server’s default timezone unless you convert zones first with the Timezone Converter.
Common questions about this calculator and how to use the results.
Yes. Cross-midnight and multi-day intervals are supported.
You still get a result with a negative sign to show direction.
Yes. Seconds are included when present in the inputs.
No. This counts all elapsed clock time. Use Business Days for weekday-only day counts.
Total hours = total seconds ÷ 3,600 (shown with decimal precision).
If the server timezone observes DST, ambiguous local times follow PHP DateTime rules for that zone.
Use the same calendar date for both fields to compare clock times within one day.
Use the date-time picker (YYYY-MM-DD HH:MM).