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
Duration in other units
| Unit | Value |
|---|---|
| Milliseconds | 30,600,000 |
| Seconds | 30,600 |
| Minutes | 510.00 |
| Hours | 8.50 |
| Days | 0.354 |
| Weeks | 0.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.
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.