Time Duration Calculator
Days = floor(S/86400); Hours = floor((S mod 86400)/3600); Minutes = floor((S mod 3600)/60); Seconds = S mod 60Free online tool
Enter a total number of seconds to see the duration breakdown.
Instant calculation
Enter a total number of seconds to see the duration breakdown.
Calculation inputs are processed in your browser. Copying or sharing a result is your choice. See our privacy policy for advertising and technical logs.
Tool and explanation maintained by Leslie. Report an incorrect result.
Input steps
Type the total number of seconds.
See complete days and the remaining hours, minutes and seconds.
Read all four components; 1 day and 1 hour means 25 elapsed hours.
The formula
For whole non-negative seconds S, extract complete days first, then the remaining hours, minutes and seconds.
Days = floor(S/86400); Hours = floor((S mod 86400)/3600); Minutes = floor((S mod 3600)/60); Seconds = S mod 60Check the method
Each example follows the same formula used by the calculator.
1 hour (3600) + 1 minute (60) + 5 seconds0 days, 1 hour, 1 minute, 5 seconds86400 + 3600 + 60 + 1 = 900611 day, 1 hour, 1 minute, 1 second3665 seconds is 1 hour, 1 minute and 5 seconds. This decomposes a duration; it does not identify a time of day or an event timestamp.
5400 seconds becomes 0 days, 1 hour and 30 minutes; 90061 seconds becomes 1 day, 1 hour, 1 minute and 1 second. The second duration is equivalent to 25 hours, 1 minute and 1 second, but the displayed result separates complete days from the remaining hours. Check it with 86400 + 3600 + 60 + 1 = 90061.
3660 seconds is 1 hour 1 minute, or about 1.0167 decimal hours, not 1.01 decimal hours. This page accepts whole non-negative seconds; it does not preserve milliseconds or convert a Unix timestamp into a date. When working with a media clip, confirm whether its source duration is seconds, milliseconds or a formatted time string before entering the value.
Method notes updated by Leslie.
Common questions
A duration can be longer than 24 hours. The result separates complete days from hours, minutes and seconds, so keep the Days component when interpreting elapsed time. It is not a clock time that discards elapsed days.
Continue calculating