Inputs
Seconds13,800
Ready
1h 30m and 2:20:00 are the same kind of length of time written two ways. The first is 1 × 3600 + 30 × 60 = 5400 seconds. The clock form H:MM:SS reads 2:20:00 as 2 × 3600 + 20 × 60 = 8400 seconds. Add them and you have 13800 seconds, which is 3 hours and 50 minutes. The ISO 8601 form of that sum is PT3H50M. Seconds are omitted when they are zero, so you do not get a trailing 0S. A result of exactly zero is PT0S.
The time calculator performs this same addition. This page is the one that treats the ISO string as the thing you came for: PT3H50M drops into a data format, a subtitle cue, or another tool that speaks ISO durations. You can also type ISO on the way in. PT45M is 45 minutes. A leading minus on the output means the subtraction went below zero.
Clock times without the seconds are still hours and minutes: 2:20 is 2 hours 20 minutes, not 2 minutes 20 seconds. Units in the word form are d, h, m, and s. There is no month unit, because a month is not a fixed number of seconds. The date pages handle calendar months.
First duration 1h 30m. Operation +. Second duration 2:20:00.
13800 seconds. ISO duration PT3H50M.
Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.
3 hours 50 minutes. In seconds that is 5400 + 8400 = 13800. The ISO form is PT3H50M.
P starts the period, T starts the time part, 3H is 3 hours, 50M is 50 minutes. No S means the seconds are zero.
In the clock form, 2:20 is 2 hours and 20 minutes. 2:20:00 is the same length with the seconds written out. Use 2m 20s for two minutes and twenty seconds.
Yes. Subtracting a longer duration puts a minus on the ISO string and a negative second count.
It is the same addition. This page is aimed at the ISO duration you can paste elsewhere. The time page is aimed at the clock arithmetic.