Guides

How Are Elapsed Time and Clock Duration Different?

See how elapsed time differs from clock duration: when each mode applies, the 12- and 24-hour options, an AM/PM worked example, and answers to common questions.

Miryori Editorial Team3 min read
Try the Time in Between Calculator

A time-in-between calculation can be set up in two ways, and choosing the wrong one is the most common source of a confusing answer. The calculator separates its work into an elapsed duration section and a clock duration section. Both return a span, but they take different inputs and are built for different situations.

Elapsed duration and clock duration answer the same question differently. Elapsed duration subtracts the start from the end and places no 12- or 24-hour format restriction on either entry. Clock duration takes hour, minute and second fields for both endpoints, plus an AM/PM marker in 12-hour mode, and is built for two clock times within one day or overnight. Choose elapsed for an open-ended pair of times, and clock for a named start and end on a clock.

What does each duration mode measure?

The elapsed section reduces the calculation to one subtraction:

elapsed duration=end time−start time\text{elapsed duration} = \text{end time} - \text{start time}

The clock section calls a dedicated function with the clock format, each endpoint's hour, minute and second, and each endpoint's AM/PM marker:

clock duration=getClockDuration(format,starthour,startminute,startsecond,startAM/PM,endhour,endminute,endsecond,endAM/PM)\text{clock duration} = \text{getClockDuration}(\text{format}, \text{start}_{hour}, \text{start}_{minute}, \text{start}_{second}, \text{start}_{AM/PM}, \text{end}_{hour}, \text{end}_{minute}, \text{end}_{second}, \text{end}_{AM/PM})

The first equation works on values you type directly into the Start time and End time fields. The second works on the structured clock fields, and its result, Clock duration, is an output-only field.

Which mode fits a same-day or overnight span?

Mode Inputs Constraint stated by the calculator Typical span
Elapsed duration Start time, End time The end must be later than the start; no 12- or 24-hour format rule Any two times you know
Clock duration Hour, minute and second for both endpoints, AM/PM in 12-hour mode, clock format selector Built for two clock times in a single day or overnight Same-day and overnight clock spans

In 12-hour mode the clock-format selector is 0 and the AM/PM selector is either am (0) or pm (1); in 24-hour mode the format is 1 and no AM/PM selector is shown. Those are the only format values the calculator uses.

Worked example: 2:16 AM to 8:10 PM

The calculator's FAQ solves this elapsed-time question by converting to 24-hour time first and then borrowing an hour when the minute column goes negative:

Step Working Result
Convert to 24-hour time 2:16 AM becomes 2:16; 8:10 PM becomes 20:10 2:16 and 20:10
Subtract directly 20:10 minus 2:16 18:-06, not a valid time
Borrow one hour Rewrite 20:10 as 19 hours and 70 minutes 19:70
Subtract again 19:70 minus 2:16 17:54

The elapsed time is 17 hours and 54 minutes. The borrowed hour did not change the end time: 19 hours plus 70 minutes is the same moment as 20:10.

Frequently Asked Questions

Does the elapsed section care whether I enter AM or PM?

No. The elapsed duration section accepts any two times with no restrictions related to 12- or 24-hour time formats, as long as the end comes after the start.

Why does the clock section show an AM/PM selector?

Because it appears only in 12-hour mode, where an hour alone cannot distinguish morning from afternoon. In 24-hour mode the selector is hidden and the hour value carries that information.

Can I use clock duration for an overnight shift?

Yes. The clock duration section is meant for two clock times during a single day or overnight, so it is the right choice when the end time falls on the next day.

Where does the finished clock span appear?

In the Clock duration field. It is marked as a forced output, so it is calculated from the clock inputs rather than entered by hand.

References

  • Omni, Time in Between Calculator: "How do I use this time in between calculator?" section, its clock-format and AM/PM datasets, the two equations and the 2:16 AM to 8:10 PM FAQ.
  • Standard AM/PM and 24-hour clock conventions that distinguish morning from afternoon in the clock-mode selectors.
Calculator

Time in Between Calculator

Time in Between: time in between calculator finds the amount of time between two hours. Free, fast and private.

Try the Time in Between Calculator