Time Duration Calculator

Calculate the difference between the calendar date and time values you enter.

How to use

These are example steps; replace the values for your task.

  1. Set the start date to September 4 and the time to 23:15.
  2. Set the end date to September 5 and the time to 01:45.

Enter values

Result

—

About this tool

This tool calculates the difference between the calendar date and time values you enter. It is suitable for schedules that use the same region and clock basis.

It does not account for time-zone changes or daylight-saving transitions. Use the Time Zone Converter for date and time values in different regions.

Calculate the difference between the entered calendar values

From 01:30 to 03:30 on the same date, the result is two hours. No region or time-zone data is attached, so daylight-saving transitions are not applied automatically.

Convert a time between regions

Try a use case and check the result

Compare a leap-day interval with a clock-time interval without zone offsets. These fixed examples are not the current time.

Example buttons replace the inputs and settings above and calculate. Restore previous input steps back one example at a time. After trying multiple examples, repeat restore to return to your original input. This history is lost when the page closes.

Span leap day in 25 hours

Input and settings

2024-02-28 23:30 → 2024-03-01 00:30

Expected result

1 d 1 hr 0 min / 25 total hours; 1500 minutes

01:30 to 03:30 is two clock hours

Input and settings

2026-03-08 01:30 → 2026-03-08 03:30 / No offset supplied

Expected result

0 d 2 hr 0 min / 2 total hours; 120 minutes

How to read the result

Calendar days contribute 24 hours each, then the clock difference is added. The leap-day example is 24 plus one hour. The second example stays two hours in every device zone. With explicit start offset −05:00 and end offset −04:00 the elapsed interval would be one hour, but this form cannot express those offsets.

Scope and limits

End must be at or after start. Offset changes, daylight-saving transitions, leap seconds and break deductions are not modeled. Compare actual instants separately using explicit offsets, for example through Unix timestamps.

Verification: calculation checks cover 25 hours across leap day, zero for identical values and rejection of reversed order. Browser checks in UTC, New York and Tokyo compare the calendar-time result.

Continue with the next task

Measure an overnight reservation

2026-09-04 23:15 to 2026-09-05 01:45 is 2 hours 30 minutes, or 150 total minutes.

Calendar date difference is multiplied by 86,400 seconds and combined with the clock-time difference.

Leaving the end date at September 4 makes 01:45 earlier than the start and produces an error.

Frequently asked questions

Does it account for daylight-saving transitions?

No. It compares the calendar dates and clock values you enter, without adding or removing actual elapsed time for DST or time-zone changes.

What if the end is before the start?

The tool displays an error so a negative duration is not mistaken for a valid result.

Are seconds supported?

The current inputs use minute precision, while the calculation logic can retain seconds.

Related tools

Inputs and storage

Keep any content you need before clearing. This tool does not autosave inputs or results. Reloading or closing the page, clearing inputs or resetting may discard your work.

Favorites and language preferences are stored separately and may be lost when site data is cleared. Tool resets and site-data deletion do not delete files already downloaded to your device.

Explore tools & games

All 120 tools · 16 games

All 120 tools · 16 games

Text & writing 26

Calculators & converters 22

Date & time 12

Images & PDF 26

Data & web 28

Random & handy 6

Games 16