Skip to content

日期时间

即时、私密且免费

时间加减计算器.

从起始时间加上或减去小时、分钟和秒,正确处理跨越午夜和负数结果。

此计算器尚未完全翻译——部分文本以英文显示。

设备端计算无需注册
01

输入数值

输入时结果会更新。

结果: 1d 00:30:00

结果

1d 00:30:00
结果超过了午夜,因此以整天数加上一个具体时刻的形式显示。

明细

时钟时间(24小时制)00:30:00
天1
小时0
分钟30
秒0
总秒数88,200

使用方法

计算以总秒数进行,然后再归一化处理,因此超过午夜的结果会进位到天数,而减去的时间超过起始时间时,会得到带负号的时长,而非错误的时钟时间。

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