The hours to decimal calculator does more than express a duration as a fraction of an hour. Its source defines three related outputs: decimal hours, decimal minutes and decimal seconds. Each one writes the same span of time in a different unit, and all three use the same two constants.
The calculator defines three decimal outputs. Decimal hours are h + m/60 + s/3600, decimal minutes are (h × 60) + m + s/60, and decimal seconds are (h × 3600) + (m × 60) + s. In every formula h, m and s mean hours, minutes and seconds. The three results express one duration in three different units, using only the constants 60 and 3600.
What is the decimal minutes formula?
Decimal minutes convert the whole span of time into minutes, including the minutes equivalent of the hours and of any seconds:
Hours are multiplied by 60 to become minutes, the existing minutes are added unchanged, and seconds are divided by 60 to become a fraction of a minute.
What is the decimal seconds formula?
Decimal seconds go one step further and express everything as seconds:
Here hours are multiplied by 3600 and minutes by 60, while the seconds are added as they are. Both this and the minutes formula are used by the calculator's internal equations, which compute minutes as 60 times the hours value and seconds as 3600 times it.
| Output | Source formula | For h = 1, m = 30 |
|---|---|---|
| Decimal hours | h + m/60 + s/3600 | 1.5 |
| Decimal minutes | (h × 60) + m + s/60 | 90 |
| Decimal seconds | (h × 3600) + (m × 60) + s | 5400 |
Worked example: all three formulas on one duration
The calculator FAQ supplies the test case: 1 hour and 30 minutes. Put , and the default into each formula.
Decimal hours give , the value the FAQ states directly. Decimal minutes give . Decimal seconds give . The table above summarises the three results, and each one is the same duration written in a different unit.
Frequently Asked Questions
What do h, m and s stand for?
They are the three clock components named in the source formulas: is hours, is minutes and is seconds. The calculator's input fields use the same ideas under the labels Hours (hh), Minutes (mm) and Seconds (ss).
Why do the formulas use 60 and 3600?
These are the unit factors in the tool's equations. There are 60 minutes in an hour and 3600 seconds in an hour, so the formulas multiply by them when moving to smaller units and divide by them when converting into hours.
Does the reverse mode use the same constants?
Yes. The calculator's equations express minutes as 60 times hours and seconds as 3600 times hours, so the reverse direction uses exactly the same two numbers as the forward formulas.
References
- Omni hours to decimal calculator source: the decimal hours, decimal minutes and decimal seconds formulas, and the definitions of h, m and s.
- Omni hours to decimal calculator equations: minutes = 60 × hours and seconds = 3600 × hours.
- Omni hours to decimal calculator FAQ: 1 hour and 30 minutes equals 1.5 decimal hours, used as the worked example.