Date & Time

Instant, private, and free

Add or Subtract Time Calculator.

Add or subtract hours, minutes and seconds from a start time, with midnight rollover and negative results handled properly.

On-device calculationNo signup
01

Set your values

Results update as you type.

Result: 1d 00:30:00

Result

1d 00:30:00
The result runs past midnight, so it is shown as whole days plus a time of day.

Breakdown

Clock time (24h)00:30:00
Days1
Hours0
Minutes30
Seconds0
Total seconds88,200

How to Use

The calculation is done in total seconds and then normalised, so results past midnight roll into days and subtracting more time than you started with gives a signed negative duration rather than a wrong clock time.

FAQs

What time will it be in a set number of hours?

Enter your start time, choose Add, and type the number of hours. The calculator shows both the resulting clock time in 24-hour format and the total duration, including any days rolled over.

What happens when the result passes midnight?

The result is reported as whole days plus a time of day, for example 23:30 plus 1 hour gives 1d 00:30:00 with a clock time of 00:30. Nothing is silently truncated.

Can the result be negative?

Yes. If you subtract more time than the start time, you get a signed negative duration such as -02:00:00, plus the equivalent clock time on the previous day (22:00). Many calculators wrap silently and hide this.

Does it accept seconds?

Yes. The start time accepts HH:MM or HH:MM:SS and you can add or subtract hours, minutes and seconds together. Everything is computed in total seconds and then normalized, so there are no rounding surprises.

Does it account for daylight saving time?

No. This is a pure clock arithmetic tool with no time zone attached, so a day is always exactly 24 hours. For DST-aware results, use a time zone converter.

Cite this calculator

Canonical URL: https://mathify.one/zh/date/add-subtract-time

Cite as: Mathify. (2026). 时间加减计算器. https://mathify.one/zh/date/add-subtract-time

Use Cases

Find start time by subtracting duration

If you know an event ended at a certain time and you want to know what time it started, subtract the duration from the end time. The calculator handles times that go before midnight.

Example: End at 01:00, subtract 3 hours → result is 22:00 the previous day.

Frequently Asked Questions

How does the calculator handle times that cross midnight?
When you add or subtract time and the result goes past midnight, the calculator automatically rolls over to the next day (or previous day) and shows the correct time, including the number of days added or subtracted.
Can I subtract more time than the start time?
Yes. The calculator handles negative durations correctly. If you subtract more hours/minutes/seconds than the start time, it will show a time on the previous day, with a negative day count if applicable.
What formats are accepted for the start time?
You can enter the start time in HH:MM or HH:MM:SS format. For example, 14:30 or 09:15:45. The calculator will interpret the time correctly and perform the operation.

Tips & Common Mistakes

Tips

  • Use 24-hour format (e.g., 14:30) to avoid AM/PM confusion, especially when crossing midnight.
  • If you need to add or subtract seconds, include seconds in the start time (HH:MM:SS) and enter the seconds value in the seconds field.
  • Double-check your operation: make sure you select 'Add' or 'Subtract' correctly, as the result will differ significantly.
  • For multi-day calculations, note that the result will show the day offset (e.g., +1 day) to help you track the actual date.

Common Mistakes to Avoid

  • Entering the start time in 12-hour format without AM/PM, which can lead to incorrect results if the calculator expects 24-hour format.
  • Forgetting to include seconds when the start time has seconds, causing a mismatch in the calculation.
  • Selecting the wrong operation (add vs. subtract) when you intend to find a start time by subtracting a duration from an end time.

Last updated: August 13, 2026