Duration Calculator
Duration calculator online. Find the time between two dates. Free date difference and elapsed time calculator.
Features
- Difference between two instants as days, hours, minutes, seconds
- ISO 8601 duration string
- Millisecond total
- Accepts Unix or ISO on each side
Common Use Cases
- Incident length: detect to resolve
- Token lifetime between iat and exp
- Build time between CI stamps
- Age of a file from mtime epoch
Elapsed time, not calendar months
We subtract milliseconds and break the absolute value into days and clock units. We do not emit P1M. For month-aware spans, use the calculator with calendar adds.
Examples
Valid - Two ISOs
2026-01-01T00:00:00Z → 2026-01-02T03:04:05ZFrequently Asked Questions
Negative durations?
We report the absolute span and which side is later.
Tips
- Paste JWT iat and exp to see remaining life without the JWT tool.