ISO 8601 duration converter

An ISO 8601 duration such as PT1H30M means 1 hour and 30 minutes, or 5,400 seconds. Paste one below to see it in words and seconds, or type seconds or plain words to get the ISO form.

Free, and it runs in your browser: nothing you type here is sent anywhere.

PT1H30M is 1 hour and 30 minutes, 5400 seconds.

ISO 8601
PT1H30M
In words
1 hour and 30 minutes
Seconds
5400
Milliseconds
5400000
As h:mm:ss
1:30:00

90 minutes, 1.5 hours, 0.0625 days.

How to convert an ISO 8601 duration

  1. Type or paste a duration: PT1H30M, 5400 (seconds), 1:30:00, or 1 hour 30 minutes. The tool detects which kind it is, and reads 1:30 as hours and minutes.
  2. Read the result in ISO 8601, plain words, seconds, milliseconds and h:mm:ss.
  3. Press Copy next to the value you need, such as the seconds for a delay setting.
  4. Years and months are estimates (365 and 30 days). Use days or smaller units when you need an exact length.

ISO 8601 duration format

DesignatorMeaningExample
PStarts every durationP1D
YYearsP2Y
M (before T)MonthsP6M
WWeeksP2W
DDaysP10D
TStarts the time partPT5M
HHoursPT12H
M (after T)MinutesPT90M
SSecondsPT0.5S

Questions

What does PT1H30M mean?

One hour and thirty minutes, which is 5,400 seconds. P starts every duration, T separates the date part from the time part, H is hours and M after the T is minutes.

What is the difference between P1M and PT1M?

P1M is one month. PT1M is one minute. The letter M means months before the T and minutes after it, so the T decides which one you get.

How do I write 90 seconds or 36 hours as an ISO 8601 duration?

PT90S and PT36H are both valid, and so are PT1M30S and P1DT12H. ISO 8601 does not require values to be rolled over, so use whichever form the system you send it to accepts.

Can an ISO 8601 duration have decimals?

Yes, on the smallest value only, such as PT0.5S or PT1.5H. Some parsers reject fractions, so check the library on the receiving side.

How many seconds are in P1Y or P1M?

It depends on the calendar. A year can be 365 or 366 days and a month 28 to 31. This converter uses 365 and 30 days to give a number, and marks the result as an estimate. Even P1D can run 23 or 25 hours across a daylight saving change in calendar-aware libraries, so P1D and PT24H are not always the same.

Can I use an ISO 8601 duration for a delay or retry interval?

Many APIs and config files take one, for example PT15M for fifteen minutes. If an endpoint wants plain seconds, paste the duration here and copy the seconds value.

Run the job at the time you set

Once you know how long to wait, RunLater makes the HTTP call for you at an exact time or on a cron schedule, retries failures with backoff, and logs every run. Point it at the endpoint or webhook that starts your script or agent job.

Starter is $15/month for 250 scheduled requests and 25,000 runs. Cancel before day 14 and you pay nothing.