CalcSolverGo

Time Duration Calculator

Find a time difference, elapsed time, or the days between two dates. Results use exact seconds and show days, hours, minutes, and seconds.

Calculation
Time format
Start time
End time

Result

8 hours, 30 minutes, 30 seconds

9:15:00 AM to 5:45:30 PM is 8 hours, 30 minutes, 30 seconds.

Days
0
Hours
8
Minutes
30
Seconds
30
Total hours
8 hours and 1,830 seconds
Total minutes
510.5 minutes
Total seconds
30,630

Method

  1. 9:15:00 AM is 33,300 seconds after midnight.
  2. 5:45:30 PM is 63,930 seconds after midnight.
  3. Subtract on the same day: 63,930 − 33,300 = 30,630 seconds.
  4. 30,630 seconds = 8 hours, 30 minutes, 30 seconds.

Why this works

Both times sit on the same clock, so the gap is how far the later time is past the earlier one.

How elapsed time and days between dates are counted

Clock and calendar durations are stored as whole seconds. A same-day time difference is the gap between the two clock times. An earlier end time is not treated as overnight unless that option is selected. Date and time counts whole days between the dates, with each calendar day as 24 hours, or 86,400 seconds, and no separate daylight-saving adjustment. Add or subtract moves a clock time by the duration you enter. For age in years and months, use the age calculator.

Worked examples

  1. Example 1

    9:15 AM to 5:45:30 PM

    On the same day this is 8 hours, 30 minutes, 30 seconds, or 30,630 total seconds.

  2. Example 2

    10:30 PM to 6:15 AM the next day

    With the next-day option selected, the duration is 7 hours, 45 minutes. Without that option, an earlier end time is rejected.

  3. Example 3

    31 January to 1 March 2024 at noon

    The calendar span is 30 days. February 2024 has 29 days, so the result is not based on equal 30-day months. Adding 7 hours 45 minutes to 10:30 PM lands at 6:15:00 AM, 1 day later.

Common questions

Why is an earlier end time not counted as overnight automatically?

A clock time alone does not say which day it belongs to. If the end is earlier than the start, select “End time is on the next day.” Otherwise the calculator asks you to confirm the overnight span instead of guessing.

Do multi-day results change for daylight saving?

No. Each calendar day counts as exactly 24 wall-clock hours, or 86,400 seconds. A local clock that skips or repeats an hour during a daylight-saving change is not given a different elapsed-time adjustment.

How do I count the days between two dates?

Open Date and time and enter both dates. The result separates whole days from the remaining hours, minutes, and seconds. Each calendar day is 86,400 seconds. This mode measures the span. It does not add a number of days to a date to produce a new calendar date.

How do I add or subtract time?

Open Add or subtract, enter a clock time, and enter the days, hours, minutes, and seconds to add or subtract. The result is the new clock time and whether it falls on a later or earlier day.

How can the total hours stay exact?

The duration is stored as a whole number of seconds. Total hours or minutes are shown as a short decimal only when that division ends evenly. Otherwise the result stays in whole hours, minutes, and seconds so it is not rounded.