Home Calculators Categories About Contact Privacy Policy

Time Calculator

Add and subtract timestamps (hours, minutes, seconds) or find the exact elapsed duration between two clock times with midnight crossover support.

Advertisement

Time Operation

Time Result

Calculated Time
6h 11m 15s
Hours 6 Hours
Total Minutes 371 Total Minutes
Total Seconds 22,275 Total Seconds

Sexagesimal Time Arithmetic Explained

Because time is measured using the sexagesimal (base-60) system for minutes and seconds rather than standard base-10 decimal notation, adding and subtracting time spans requires modular base-60 conversions.

Algorithm

  1. Convert all timestamps into total cumulative seconds: $\text{Seconds} = (\text{Hours} \times 3600) + (\text{Minutes} \times 60) + \text{Seconds}$.
  2. Perform standard integer addition or subtraction on the seconds total.
  3. Convert the resulting seconds back into canonical units: $\text{Hours} = \lfloor \text{Total} / 3600 \rfloor$, $\text{Minutes} = \lfloor (\text{Total} \pmod{3600}) / 60 \rfloor$, $\text{Seconds} = \text{Total} \pmod{60}$.
Advertisement
Advertisement