Time Conversion for Workouts
Convert a workout time between h:mm:ss, total seconds and decimal minutes.
The page reads h:mm:ss or mm:ss as seconds, then prints the total in seconds, in decimal minutes and back in hours, minutes and seconds. 1:02:05, for example, is 3725 seconds and 62.0833 minutes.
The time must be above 0 and a seconds or minutes field of 60 or more is refused, with the offending field named, rather than rolled into the next unit. A bare number without a colon is refused because its unit would be ambiguous.
One parse and two divisions, so the three lines are identical on every reload.
A workout time is converted three ways: h:mm:ss into total seconds, into decimal minutes, and back into the same clock spelling. 1:02:05 is 3725 s, which is 62.0833 min.
The page does not add intervals or sum a session: it converts the one time you type. A time of zero is refused, and a seconds or minutes field of 60 or more is refused rather than silently carried.
How to use it
Enter the workout time as h:mm:ss or mm:ss and press Run. Three lines come back: total seconds, decimal minutes and the time written out in hours, minutes and seconds.
The arithmetic
Seconds are the base: hours × 3600 plus minutes × 60 plus seconds. Decimal minutes is seconds ÷ 60, so 3725 s becomes 62.0833, and the third line rebuilds the clock from the same total.
What to Expect
Best for
- Moving a workout time between a clock spelling and the decimal minutes a log expects.
What this tool keeps
- All three spellings of the same duration, derived from one total.
Sample input
1:02:05.
Sample output
Total = 3725 s = 62.0833 min = 1 h 2 min 5 s
Frequently asked questions
Why is the decimal minute figure not rounded?
It is trimmed to four decimals so the value stays usable in a spreadsheet. Rounding to a whole minute would lose up to 59 seconds of a workout.
Can I enter 90 minutes directly?
Enter it as 1:30:00. A field of 90 in the minutes position is refused because a clock's minutes field runs 0 to 59.
Does it total several intervals?
No. One time is converted per run; to add intervals, add them first and enter the sum.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.