Calculatorism

Time Duration Calculator

Compute the duration between two clock times, broken into days/hours/minutes/seconds (supports >24h).

Input Data

H1
M1
S1
H2
M2
S2

Results

0d 8h 30m 0s
30,600
總秒數 30600 = 0天 8時 30分 0秒

At a glance:Duration = end − start, unified to seconds then subtracted as absolute value: t = h·3600 + m·60 + s. Output is decomposed into d/h/m/s (auto-carry: 3600s=1h, 60s=1m, 86400s=1d). Cross-midnight is summed directly (no requirement that end > start). Useful for work hours, sleep, travel timing.

Formula

t = h·3600 + m·60 + s.

Δ = |t₂ − t₁|; decomposed into d, h, m, s.

How to Use

  1. Enter the start and end hours/minutes/seconds.
  2. The tool gives the duration (d/h/m/s) and total seconds.

Case Studies

9:00 → 17:30

30600s; 8h30m = 0d 8h 30m 0s.

23:00 → 1:00 (cross-midnight)

7200s; 2h0m.

FAQ

Cross-midnight?

Absolute difference; 23:00→1:00 gives 2h, no requirement that end > start.

Over 24h?

Supported (hour field can exceed 23); output includes days.

Negative value?

Absolute value taken; duration is non-negative.

Vs date difference?

This tool only computes h/m/s difference, not calendar years/months/days (see date-difference).

Precision?

Integer seconds.

Applications?

Work-hour stats, sleep hours, exercise timing, shift length.

Related Tools

References

Content review: Calculatorism Lifestyle Team. Results are for reference only; please refer to the relevant authorities for the official figures.

Found a problem with the results?

If this calculator's result is wrong, or you have any question about the calculation logic, please let us know. You are viewing:Time Duration Calculator(/everyday-life/time-duration)。