Skip to content
UniKit

Time difference calculator

Computes the difference between two times (HH:MM, HH:MM:SS or plain seconds), carrying across midnight correctly and printing hours/minutes/seconds plus days. Both times are inputs; the tool never reads the clock, so results are reproducible. A reference table.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Time A (HH:MM[:SS] or seconds)

Result

Both times are inputs; the tool never reads the clock. A reference table.

Enter both times to get the difference

Difference (seconds): 0 · Days: 0 · Hours: 0

What this tool does

  • Work out shift or overtime length
  • See how far apart two times are
  • Check a difference that crosses midnight

Example

Input

08:30

Output

Time difference (the clock is never read; you supply both times)
Time A: 0:08:30 Time B: 0:17:45

Difference: B − A = 0:09:15
Total 555 s = 0 days 0 hours 9 min 15 s

Method: HH:MM, HH:MM:SS and plain seconds are supported; midnight rollover carries correctly (e.g. 23:30 → 01:15 = 1:45).
The tool never reads the clock, so results are reproducible and testable.

Frequently asked questions

Which formats are supported?

HH:MM, HH:MM:SS and plain seconds (e.g. 5400); minutes and seconds are limited to 0-59.

How does midnight work?

Seconds are subtracted directly: 23:30 to 01:15 gives -22:15, i.e. B is 22h15m earlier; the sign is printed.

Does it read the system clock?

No. Both times are inputs, so the same input always yields the same output, which keeps it testable.

Is my data uploaded?

No, it runs locally. A reference table.

Keywords:HH:MM:SStime difference

Related tools