Clock to Seconds Converter
Convert hours, minutes, and seconds to total seconds instantly. Supports reverse conversion, presets, and copy-to-clipboard.
About
Precise time-unit arithmetic matters when configuring timeout intervals, animation durations, or industrial process timers. A single transposition error - confusing 3600 s with 360 s - can cascade into missed deadlines or failed automation sequences. This converter accepts a standard clock reading in h, m, and s and reduces it to a single scalar value in seconds, eliminating mental math errors. It also performs the inverse decomposition: given a raw second count, it returns the canonical hours - minutes - seconds breakdown.
The tool assumes the SI definition where 1 min = 60 s and 1 h = 3600 s. Leap seconds are not modeled. Fractional seconds are supported to two decimal places. Pro tip: when feeding values into setTimeout() or CSS animation-duration, remember those APIs expect milliseconds - multiply your result by 1000.
Formulas
The clock-to-seconds conversion is a linear combination of three time components weighted by their SI scale factors.
Where Ttotal = total time in seconds, h = hours (≥ 0), m = minutes (0 - 59 in canonical form), s = seconds (0 - 59.99 in canonical form).
The inverse decomposition extracts hours, minutes, and remaining seconds from a raw total:
For millisecond conversion, multiply: Tms = Ttotal × 1000. For minutes: Tmin = Ttotal60.
Reference Data
| Clock Time | Total Seconds | Total Minutes | Milliseconds | Common Use |
|---|---|---|---|---|
| 0h 0m 1s | 1 | 0.0167 | 1,000 | JS setTimeout base unit |
| 0h 0m 30s | 30 | 0.5 | 30,000 | TV commercial slot |
| 0h 1m 0s | 60 | 1 | 60,000 | API rate-limit window |
| 0h 1m 30s | 90 | 1.5 | 90,000 | Soccer extra-time half |
| 0h 5m 0s | 300 | 5 | 300,000 | Session timeout default |
| 0h 10m 0s | 600 | 10 | 600,000 | Pomodoro break |
| 0h 15m 0s | 900 | 15 | 900,000 | Quarter-hour billing |
| 0h 25m 0s | 1,500 | 25 | 1,500,000 | Pomodoro work block |
| 0h 30m 0s | 1,800 | 30 | 1,800,000 | Server health-check interval |
| 0h 45m 0s | 2,700 | 45 | 2,700,000 | Soccer half |
| 1h 0m 0s | 3,600 | 60 | 3,600,000 | Token expiry (OAuth) |
| 1h 30m 0s | 5,400 | 90 | 5,400,000 | Feature film runtime |
| 2h 0m 0s | 7,200 | 120 | 7,200,000 | Database backup window |
| 4h 0m 0s | 14,400 | 240 | 14,400,000 | DNS TTL typical |
| 8h 0m 0s | 28,800 | 480 | 28,800,000 | Standard workday |
| 12h 0m 0s | 43,200 | 720 | 43,200,000 | Half-day cron schedule |
| 24h 0m 0s | 86,400 | 1,440 | 86,400,000 | Unix day / cookie maxAge |
| 48h 0m 0s | 172,800 | 2,880 | 172,800,000 | Weekend span |
| 168h 0m 0s | 604,800 | 10,080 | 604,800,000 | One week / JWT refresh |
| 720h 0m 0s | 2,592,000 | 43,200 | 2,592,000,000 | 30-day month approx |
Frequently Asked Questions
animation-duration, you can use seconds directly (e.g., animation-duration: 62.75s) since CSS accepts both s and ms units.