c+CalcLantern

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

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.

MDN: UTC date methods

Related calculators

Days Between Dates Calculator: Elapsed or Inclusive

Date Calculator: Add or Subtract Days, Months & Years

Business Days Calculator: Workweeks & Exclusions

Weekday & ISO Week Number Calculator

Printable Monthly Calendar: Monday or Sunday Start

BUILT FOR CLARITY

Useful tools. Honest answers.

An original collection of calculators for everyday estimates and learning.

Calculations run in your browser. Our calculator code processes your inputs locally. Optional Google Analytics runs only after you allow it. Normal public pages also load Google’s AdSense tag independently of that choice; it may make advertising requests even without visible ads. See our Privacy notice. Results are estimates within each tool’s stated scope, not professional advice.

Financial, health and building-related tools have specific limitations. Check important decisions with a qualified professional. No live currency rates, tax tables or current price feeds are connected.