Time Duration Calculator: Difference, ISO 8601 & Add/Subtract

Calculate exact durations between times or dates, compare totals, copy ISO 8601 output, and add or subtract fixed-length durations.

Start Time

End Time

Tip: if the end time is earlier than the start time, it is treated as the next day (overnight).

Duration

8 h, 30 m, 0 s
8 hours, 30 minutes
8.50
Total Hrs
510.00
Total Mins
30,600
Total Secs
PT8H30M

Duration in other units

UnitValue
Milliseconds30,600,000
Seconds30,600
Minutes510.00
Hours8.50
Days0.354
Weeks0.051

Add or subtract a duration

Apply a fixed-length ISO 8601 duration to a base date and time. Day, week, hour, minute, and second forms are supported; calendar months and years are not.

2024-01-01 10:30:00Z

Time duration calculator features

  • Measure time-only or date-and-time intervals with second-level precision
  • Handle overnight spans with an explicit badge and show weeks, days, and clock units
  • Compare exact totals in milliseconds, seconds, minutes, hours, days, and weeks
  • Generate and copy ISO 8601 durations plus a complete human-readable summary
  • Add or subtract day-and-time ISO durations from a base date without leaving the page
  • Use deterministic browser-only calculations with no upload, account, or backend

Time duration FAQ

How does the time duration calculator handle overnight times?

In Time Only mode, an end time earlier than the start time is treated as the next day and marked overnight. Use Date & Time mode when you need an explicit multi-day interval.

What ISO 8601 durations can the add/subtract tool use?

It accepts fixed-length day and time forms such as PT90S, PT1H30M, P2DT4H, and P2W. Years and months are intentionally excluded because their elapsed length depends on the calendar and starting date.

Are my time values sent to a server?

No. The calculations run in your browser, and the page does not require an account or an API request to calculate a duration.

Infinio Tools
© 2026 Infinio Labs