Free time & date tool

Time Duration Calculator

Find how much time passed between two dates and times, such as an overnight trip or a rental period. See the answer in days, hours, minutes and seconds. Use the main form for your device’s time zone or the extra panel for a chosen city’s zone.

Calculate elapsed time

Find the exact duration between two local date and time values.

Elapsed time in a named time zone

Find the time passed between two dates and times in one selected time zone. Compare it with the gap shown by the clock readings. Reversing the dates gives a negative result. If a time happens twice when clocks move back, choose which occurrence you mean. Times skipped when clocks move forward cannot be used.

Using the result

  • An overnight stay from 10 PM to 6 AM lasts 8 hours if the clocks do not change.
  • A displayed week means seven 24-hour days.
  • For daylight-saving changes, see the guidance below and choose the correct zone.

How to use the Time Duration Calculator

  1. Choose both dates and times in the same browser-local zone.
  2. Use Swap if the end precedes the start; equal readings produce zero.
  3. Select Calculate duration to see the time passed. Each displayed day means 24 hours.
  4. A share link stores the entered local readings, not a named time zone; tell a recipient which zone you used.

Elapsed hours versus calendar days

Use total hours for an elapsed-duration question. Use Date Difference for date labels without times. The distinction matters for a rental period, overnight recording or server maintenance window spanning an offset change.

The original local form uses the browser’s current zone. The named-zone panel interprets both readings in one chosen named time zone; use Time Zone Converter to translate between different source and destination zones.

Advanced: ambiguous times and sharing

When clocks move forward, some local times are skipped and cannot be entered. When clocks move back, a time can happen twice. The main form uses the first occurrence; the named-zone panel lets you choose the first or second for each date and time.

Time-zone data comes from the browser environment. Share links preserve local dates and times only, so opening one in another zone can change elapsed hours. Leap seconds are not represented, and subsecond input is not supported.

How elapsed time is calculated

Elapsed time is how much time passes from the start to the end. The calculator subtracts the starting date and time from the ending date and time, then shows the result in weeks, days, hours, minutes and seconds.

Elapsed duration

ending time − starting time = time passed

The total-unit results keep the complete duration in a single unit. For example, a duration of 1 day 12 hours is 1.5 total days, 36 total hours or 2,160 total minutes.

Which duration tool should I use?

Date and time to date and time

Use this Time Duration Calculator when both the start and end include full calendar dates and clock times.

Work shift or clock hours

Use the Work Hours Calculator for work shifts, overnight clock times and break deductions.

Add or subtract a duration

Use the Time Calculator when adding or subtracting hours, minutes and seconds rather than measuring the gap between two dates and times.

Compare different time zones

Use the Time Zone Converter when the start and end represent different geographic time zones.

Examples

Overnight rental

A rental from January 5, 2026 at 6 PM to January 6 at 9 AM lasts 15 hours, or 54,000 seconds, if the clocks do not change.

Ordinary interval

2026-01-01 08:15 to 15:45 in a zone with no offset change that day is 7 h 30 min = 27,000 seconds.

Spring transition

With the browser set to America/New_York, 2024-03-10 00:00 to 2024-03-11 00:00 spans 23 hours, despite the dates being one day apart.

Frequently asked questions

Which panel should I use when sharing a result with a colleague abroad?

Use the named-zone panel and copy its answer, which includes the zone and UTC endpoints. The main form’s share link contains local readings only; opening it in another device zone can change the elapsed result.

Why did a one-date interval return 23 hours?

An offset advance can remove one local hour. In New York on March 10, 2024, midnight to the next midnight is 23 elapsed hours.

Can I compare departures in two different cities here?

Both forms use one time zone for the start and end. For travel between cities, use Time Zone Converter to find both times in your device’s zone, then enter those converted dates and times in the main form here.

Are the share-link times universal?

No. The link contains local date-time strings without a time-zone identifier. State the zone separately and verify the recipient uses it.

What happens when an autumn date and time occurs twice?

The named-zone panel asks you to select an earlier or later occurrence independently for each endpoint. On November 3, 2024, New York 01:30 maps to 05:30 UTC earlier or 06:30 UTC later. A missing spring time is rejected.

Sources & methodology

Related tools

More time & date tools