Decimal Hours to Time Calculator
Convert decimal duration hours into hours, minutes and seconds, rounded to the nearest second.
Formula
T=round(3600h); H=floor(T/3600); M=floor((T−3600H)/60); S=T−3600H−60M.
Hours ≈ floor((9,000)÷3600) · Minutes ≈ floor(((9,000)-(2)×3600)÷60) · Seconds ≈ (9,000)-(2)×3600-(30)×60
How to use
- Enter nonnegative decimal hours.
- Read whole hours, minutes and seconds.
- Join the components as HH:MM:SS if needed.
Examples
- 2.5 hours = 02:30:00.
Frequently asked questions
Is 1.5 hours 1:50?
No. Half an hour is 30 minutes, so it is 01:30:00.
Can hours exceed 24?
Yes. This is a duration; it does not wrap at midnight.
How is rounding handled?
Total seconds are rounded first, so 60 seconds carry into minutes and hours.
Sources
Updated: