How to use
- In Time between two times, type a start and an end time as hour, minute and second and choose AM, PM or the 24-hour clock. Leave minutes and seconds blank when they are 0, or press Now to fill the time from your device.
- Read the length as hours, minutes and seconds, then the same length as total hours, total minutes and total seconds. When the end is earlier than the start, the start is taken as the day before, which suits a night shift.
- In Time between two dates, add a date to each time to get days, hours, minutes and seconds across several days, with the totals in each unit.
- Use Swap start and end to turn the two moments around, and Reset to go back to the example.
Formula
Time of day in seconds = hour (24-hour) x 3,600 + minutes x 60 + seconds, where 12 AM is hour 0 and 12 PM is hour 12. Length = end - start, plus 24 hours when the end is earlier than the start on the same day. Across dates, length = days between x 86,400 + end seconds - start seconds. Totals divide the seconds by 60, 3,600 or 86,400.Example
From 8:30 AM to 5:30 PM is 9 hours, which is 540 minutes or 32,400 seconds. From 24 November 2026, 8:30 AM to 25 November 2026, 5:30 PM is 1 day 9 hours: 1.375 days, 33 hours, 1,980 minutes or 118,800 seconds.
Calendar days are counted as 24 hours, so a clock change for daylight saving does not shorten or lengthen the answer. India has no clock changes. The end must not be earlier than the start when two dates are used.