AnsRioSmart tools. Clear answers.
Home / Dates & time / Hours to ISO 8601 time duration
Dates & time

Hours to ISO 8601 time duration

Hours to ISO 8601 time duration with editable inputs, an explained method, a worked example and clearly stated output limits.

Make it your own ⌁ Runs on your device

Your inputs are processed locally and are not added to analytics or saved history.

YOUR RESULT
Ready when you are.

Enter your values, then select Convert to ISO duration.

How it works

Round hours to the nearest whole second, then serialize total hours, minutes and seconds as PTnHnMnS; zero is PT0S.

Input definitions

Hours (0–1,000,000)
Enter the value in the labeled unit.

A worked example

Hours (0–1,000,000)
1.5
PT1H30M

Assumptions & limits

Nonnegative time duration only, rounded to seconds. Hours are not converted to calendar days or months; leap seconds are excluded.

Sources & review

Maintained by AnsRio. Methods and examples use automated checks; this does not imply independent professional certification.

Method updated 2026-10-17. Content checked against the stated method and examples. Our verification approach.

Common questions

Why does 36 hours become PT36H instead of a day and 12 hours?

The tool encodes elapsed time in hours, minutes and seconds. Calendar days may have different elapsed lengths around time-zone changes, so no calendar day or month conversion is inferred.

Do daylight-saving changes affect calendar date results?

Date-only operations compare Gregorian calendar dates at UTC midnight. They do not count local elapsed hours. Timestamp operations require an explicit offset; individual tool assumptions state boundary rules.

How does the Hours to ISO 8601 time duration tool work?

Round hours to the nearest whole second, then serialize total hours, minutes and seconds as PTnHnMnS; zero is PT0S.

What are the assumptions and limits of Hours to ISO 8601 time duration?

Nonnegative time duration only, rounded to seconds. Hours are not converted to calendar days or months; leap seconds are excluded.

↗
Made for the question in front of you.

No sign-up. Tool inputs stay on your device.

How we work