Decimal to Time (hh:mm:ss) Converter

Decimal to Time (hh:mm:ss) Converter

Popular AI Skill PRO

Enter Calculation

Results

Time (hh:mm:ss)
36:00:00
hours : minutes : seconds
In words / breakdown 36 hours : 0 minutes : 00 seconds or 1 days, 12 hours, 0 minutes, 00 seconds
Total seconds 129,600

Formula

Time=HH:MM:SSwhere{T=Decimal Time×86400 s/dayHH=⌊T3600⌋MM=⌊Tmod360060⌋SS=round(Tmod60,decimals)\begin{gathered} \text{Time} = \text{HH}:\text{MM}:\text{SS} \\[1.5em] \text{where}\quad \left\{ \begin{aligned} T &= \text{Decimal Time} \times \text{86400 s/day} \\ \text{HH} &= \left\lfloor \dfrac{T}{3600} \right\rfloor \\ \text{MM} &= \left\lfloor \dfrac{T \bmod 3600}{60} \right\rfloor \\ \text{SS} &= \operatorname{round}\left(T \bmod 60,\ \text{decimals}\right) \end{aligned} \right. \end{gathered}
Usage stats

Advertisement

Report an error on this page

What this converter does

This tool turns a single decimal number into a clean hh:mm:ss duration. You pick what your number represents — days, hours, minutes, or seconds — and the calculator normalizes it to total seconds, then splits it into hours, minutes, and seconds. Because it measures a duration (not a wall-clock time), the hours field is never wrapped at 24: 1.75 days correctly shows as 42 hours, not 18.

A decimal value converting into three boxes labeled HH, MM, SS separated by colons
A decimal value is converted into hours, minutes and seconds.

How to use it

Enter your decimal value (for example 42.756), choose the matching unit from the dropdown, and optionally tick "show hundredths of seconds" to keep two decimal places on the seconds. The result shows the formatted time plus an "in words" breakdown and the equivalent day-normalized form.

The formula explained

The reliable method converts everything to total seconds first: $$t_{\text{sec}} = v \times k$$ where the scale factor \(k\) is 86400 for days, 3600 for hours, 60 for minutes, and 1 for seconds. Then \(H=\left\lfloor\tfrac{t}{3600}\right\rfloor\), the remainder is split into \(M=\left\lfloor\tfrac{t-3600H}{60}\right\rfloor\), and the leftover becomes seconds \(S=t-3600H-60M\). Rounding only happens at the very last step, which avoids fractional drift. If rounding pushes seconds to 60 it carries into minutes, and 60 minutes carries into hours.

Advertisement
Flowchart splitting total seconds t into H, M and S using division and remainders
Total seconds are split into hours, minutes and seconds by successive division.

Worked example

Take 42.756 hours. Total seconds = $$42.756 \times 3600 = 153921.6.$$ Hours = \(\left\lfloor 153921.6 / 3600 \right\rfloor = 42\). Remainder = \(2721.6\) s, so minutes = \(\left\lfloor 2721.6 / 60 \right\rfloor = 45\). Remaining seconds = \(21.6\), which rounds to 22. The result is 42:45:22, or in words "1 days, 18 hours, 45 minutes, 22 seconds". With hundredths enabled the seconds display as 21.60, giving 42:45:21.60.

Common Decimal-to-Time Conversions

The converter multiplies the decimal value by the number of seconds in its unit, then splits the total into hours, minutes and seconds. Hours are not capped at 24, so 1.5 days shows as 36 hours.

Decimal value Unit Total seconds hh:mm:ss
0.01 hours 36 00:00:36
0.05 hours 180 00:03:00
0.1 hours 360 00:06:00
0.25 hours 900 00:15:00
0.5 hours 1,800 00:30:00
0.75 hours 2,700 00:45:00
1.0 hours 3,600 01:00:00
0.1 minutes 6 00:00:06
0.25 minutes 15 00:00:15
0.5 minutes 30 00:00:30
0.75 minutes 45 00:00:45
0.25 days 21,600 06:00:00
0.5 days 43,200 12:00:00
1.5 days 129,600 36:00:00

Example: \(0.25 \text{ h} \times 3600 = 900 \text{ s}\), and \(\lfloor 900/3600 \rfloor = 0\) hours, \(\lfloor 900/60 \rfloor = 15\) minutes, 0 seconds, giving 00:15:00.

Advertisement

Time Unit Constants

These relationships are fixed by definition and are used for every conversion on this page.

Unit Equivalent
1 day 24 hours = 1,440 minutes = 86,400 seconds
1 hour 60 minutes = 3,600 seconds
1 minute 60 seconds
1 second 100 hundredths of a second

The second is the SI base unit of time. The minute, hour and day are non-SI units accepted for use with the SI, defined as exactly 60 s, 3,600 s and 86,400 s. Because the result is a duration rather than a clock time, leap seconds and daylight saving changes are ignored. A decimal day is always treated as exactly 86,400 seconds.

FAQ

Why can the hours be larger than 24? This is a duration, not a time of day, so hours accumulate beyond 24 (e.g. 76 hours for 3.2 days).

Why does the whole-second result sometimes differ from hundredths? Whole-second mode rounds to the nearest second, so 21.6 becomes 22; hundredths mode keeps 21.60.

What inputs are valid? Any number greater than zero. Zero, blanks, and negative values are rejected.

Last updated:

Most popular in Time and Date

View all Time and Date calculators