Time Duration Calculator: Dates & Overnight Spans
Calculate wall-clock duration between explicit dates and times, including overnight spans and seconds. This model does not adjust for time zones or DST.
Worked example: an interval across two midnights
Set Start date to July 1, 2026 and Start time to 22:00. Set End date to July 3, 2026 and End time to 06:30. There are 2 hours to the first midnight, 24 hours on July 2, then 6 hours 30 minutes on July 3: 32 hours 30 minutes in total.
The result is displayed as 1d 8h 30m 0s, with Total hours = 32.5 and Total seconds = 117000. Both dates are explicit; the tool does not guess that an earlier clock time means the next day.
This is wall-clock arithmetic: each date contributes 24 hours. It is not DST-aware and does not account for time-zone changes or leap seconds. It cannot establish actual elapsed time across a clock change.
Related task
- Work hours calculator: For a work shift with an unpaid break, use the separate shift-and-break model.
To reproduce these illustrations, enter their stated inputs. Reset to example values restores the calculator’s separate default inputs.
How this works
Subtract date-only day numbers and clock seconds. The end date is explicit, so overnight and multiple-day intervals need no guess.
Example
Using the example inputs, wall-clock duration is 0d 8h 30m 0s.
- Start date
- 2024-03-09
- Start time
- 22:00
- End date
- 2024-03-10
- End time
- 06:30
- Wall-clock duration
- 0d 8h 30m 0s
Every calendar day is treated as 24 hours. This is not elapsed time across time-zone or daylight-saving changes.
Scope and assumptions
No time zones, daylight-saving adjustments or leap seconds. For actual elapsed time across an offset change, this wall-clock model is not suitable.
Related calculators
Days Between Dates Calculator: Elapsed or Inclusive
Date Calculator: Add or Subtract Days, Months & Years
Business Days Calculator: Workweeks & Exclusions