TXT · Text & Data tools

Time Difference Calculator (Milliseconds, Seconds, Hours, Days)

Start timeunset
End timeunset
Show result in
Waiting for input

Choose a start time and end time to calculate the duration.

NoValid timesHoursUnitAbsoluteModeWaitingDirection

Shareable link

Settings are written to the URL as you change them. Nothing differs from the defaults yet.

Calculate elapsed time

Calculate the duration between two date-time values and choose the unit that matches the job. The main result can show milliseconds, seconds, minutes, hours, days, weeks, average months, or average years.

The cards below the main result keep the other units visible, so changing the selector does not hide the full context. Copy Report collects the selected result, the fixed-unit conversions, the average month and year estimates, and the clock-style breakdown.

Fixed units and average units

Milliseconds, seconds, minutes, hours, days, and weeks use fixed unit sizes. A day is treated as 24 hours, and a week is treated as 7 fixed days.

Months and years are different. Calendar months can have 28, 29, 30, or 31 days, and leap years change the length of a calendar year. The average month and year cards use Gregorian averages, so they are estimates rather than contract or billing rules.

Signed and absolute results

Absolute result is on by default because most duration checks ask for distance. Turn it off to preserve the sign when the end time is before the start time.

The Now button fills the end field with the current date and time. Swap reverses the two inputs when you need to check the same span in the opposite direction.

Frequently Asked Questions

Yes. Choose Milliseconds under Show result in, or read the Milliseconds card that stays visible under the main result. The inputs accept seconds, so 09:15:02 to 09:15:07 reads as 5,000 milliseconds.

Absolute result drops the sign, so the distance between the two times shows whichever comes first. Turn it off to see a negative value when the end time is before the start time.

Calendar months run from 28 to 31 days and leap years change the length of a year. The month and year cards divide by the average Gregorian length, so they are estimates, not billing rules.

It fills the end field with the current date and time from your device, which measures the time elapsed since a saved timestamp.

Both values are read in the device time zone, so enter them in the same zone. Convert a UTC timestamp to local time first, or enter both in UTC and ignore the zone.

Explore Our Tools

Browse all tools