Example 1 — Decimal hours to hh:mm:ss
\(h_d=7.75\Rightarrow h=7,\ m=\lfloor60\cdot0.75\rfloor=45,\ s=0\). Result: 07:45:00. Reverse: \(7+\tfrac{45}{60}=7.75\ \text{hours}\).
A quick tool converting decimal hours to hours, minutes, and seconds, showing live math, examples, and results instantly anywhere.
Convert decimal to seconds:
days→×86400, hours→×3600, minutes→×60, seconds→×1.
Then:
D = ⌊T/86400⌋; R1 = T − D·86400
H = ⌊R1/3600⌋; R2 = R1 − H·3600
M = ⌊R2/60⌋; S = round(R2 − M·60).
A Decimal to Time Calculator converts decimal hours or minutes into the familiar clock format hours:minutes:seconds. It is commonly used in timesheets, payroll, billing, time tracking, athletics, editing, and call logs where source systems export durations in decimal form (e.g., 7.75 hours) but reports or invoices require hh:mm:ss. The calculator also performs the reverse conversion—turning hh:mm:ss back into decimal hours—so you can add up work blocks, apply hourly rates, or compute average pace and turnaround times. Clear formulas make the transformations transparent and reproducible.
Decimal formats are convenient for arithmetic, but humans read time more easily in hh:mm:ss. This tool handles both directions with care for rounding, carrying seconds into minutes, and minutes into hours. It supports negative durations (useful for corrections or offsets), rounding to the nearest second or minute, and fractional days when needed (e.g., for spreadsheets that store time as part of a day). It also summarizes totals from multiple entries and returns both hh:mm:ss and decimal forms side by side, avoiding confusion across systems (payroll vs. project tracking).
From decimal hours }h_d\text{ to }(h,m,s): \[ h=\left\lfloor h_d \right\rfloor,\quad m=\left\lfloor 60\,(h_d-h) \right\rfloor,\quad s=60\left(60\,(h_d-h)-m\right). \]
From decimal minutes }m_d\text{ to }(h,m,s): \[ h=\left\lfloor \frac{m_d}{60} \right\rfloor,\quad m=\left\lfloor m_d-60h \right\rfloor,\quad s=60\left(m_d-60h-m\right). \]
Rounding seconds to nearest }N\text{ seconds (e.g., }N=1\text{ or }60\text{):} \[ s' = N\cdot\operatorname{round}\!\left(\frac{s}{N}\right), \] then carry: if \(s'\ge 60\Rightarrow s'=s'-60,\ m=m+1\); if \(m\ge 60\Rightarrow m=m-60,\ h=h+1\).
From }(h,m,s)\text{ to decimal hours:} \[ h_d = h+\frac{m}{60}+\frac{s}{3600}. \]
Fraction of a day (useful for spreadsheets): \[ d = \frac{h}{24}+\frac{m}{1440}+\frac{s}{86400}. \]
Negative durations with sign } \sigma=\operatorname{sgn}(h_d): \[ (h,m,s)_\text{signed}=\sigma\cdot\big(|h|,\ |m|,\ |s|\big). \]
\(h_d=7.75\Rightarrow h=7,\ m=\lfloor60\cdot0.75\rfloor=45,\ s=0\). Result: 07:45:00. Reverse: \(7+\tfrac{45}{60}=7.75\ \text{hours}\).
\(h_d=2.5083\Rightarrow h=2,\ m=\lfloor60\cdot0.5083\rfloor=30,\ s=60(0.5083\cdot60-30)\approx29.88\ \text{s}\). Rounded to nearest second: 02:30:30.
\(m_d=135.5\Rightarrow h=\lfloor135.5/60\rfloor=2,\ m=\lfloor135.5-120\rfloor=15,\ s=60(135.5-120-15)=30\). Result: 02:15:30.
\(h_d=-1.25\Rightarrow\) sign \(-\); magnitude gives \(01:15:00\). Result: -01:15:00.
They are the same: 0.75 hours = 45 minutes, so 7.75 → 07:45.
Use \(h_d=h+\tfrac{m}{60}+\tfrac{s}{3600}\).
Yes—seconds are carried properly into minutes and hours after rounding to your chosen precision.
As a signed hh:mm:ss (e.g., −00:30:00). The sign applies to the whole duration.
Nearest second by default; you can round to the nearest minute for simplified reports.
Rounding can land at 59s; if it hits 60, it carries to the next minute automatically.
Yes—sum in decimal or hh:mm:ss; both totals are shown for cross-checking.
Yes—use the minutes formula; the tool returns hh:mm:ss and decimal hours.
They’re supported; the result simply shows hours beyond 24 (e.g., 27:10:00).