DailyTools
Home / Guides / Time

How to calculate a duration across midnight

Split the interval at midnight or treat the end reading as occurring on the following day. Confirm which date each reading belongs to before calculating.

Add the two sides of midnight

A recording starts at 22:45 and ends at 01:20 the next morning. The first part lasts 1 hour 15 minutes and the second lasts 1 hour 20 minutes. Together they give 2 hours 35 minutes. Enter the two readings in the same order in the calculator.

Decide what matching times mean

From 08:00 to 08:00 could describe a moment or a full day, depending on the dates. The simple clock calculator returns zero for matching readings. If your log spans a whole day, keep both dates alongside the clock entries.

Check for a clock adjustment

A clock-only calculation assumes a regular 24-hour day. Around a daylight-saving change, a local time can repeat or disappear. For an actual recording duration in that situation, use the file's runtime or timestamps with their UTC offsets as an independent check.

Try the example

Open Time Calculator