全球免费使用

两个日期时间之间的时长计算器

计算开始和结束日期时间之间的准确时长,以天、小时和分钟、小数小时和总分钟数显示。

你的数据只保留在此标签页中。我们不会收到你的文件、粘贴的文本或计算数值。

输入

提示:按 Ctrl + Enter 运行

你的结果

结果将显示在这里。

下方的详细帮助目前仅提供英文版。

关于此工具

How long was the outage, the car rental or the flight connection? This calculator takes a start date and time and an end date and time and returns the exact duration in several forms: days, hours and minutes; hours:minutes:seconds; decimal hours; total minutes; and weeks and days.

Both times are treated as the same local clock. If daylight saving starts or ends between them, the real elapsed time differs by an hour, and the tool reminds you of that.

使用方法

  1. Enter the start date and start time.
  2. Enter the end date and end time.
  3. Run the calculation.
  4. Use the format you need: decimal hours for billing, total minutes for logs.

计算原理

Duration = end − start, computed from the two date-times on the same clock and expressed in several units.

duration = end − start

计算示例

A rental van is picked up on October 12, 2026 at 08:30 and returned on October 14 at 17:15. The duration is 2 days 8 hours 45 minutes, which is 56:45:00, 56.75 decimal hours or 3,405 minutes. A company charging per started 24 hours would bill three days.

示例输入和结果

开始日期: 2026-10-12
开始时间: 08:30
结束日期: 2026-10-14
结束时间: 17:15

→ 时长: 2 天 8 小时 45 分钟
→ 小时和分钟: 56:45:00
→ 小时(小数): 56.75
→ 总分钟数: 3,405
→ 周和天: 0 周 2 天

局限性

最后更新:

常见问题

What if daylight saving changes during the period?

The calculation treats both times as the same clock, so the result can be one hour more or less than the real elapsed time across a change.

Can it span several weeks?

Yes; the weeks-and-days line helps with long periods.

How is it different from the date difference calculator?

It includes times of day; the date difference calculator counts whole days.

故障排除

The result is one hour off after a clock change.

Adjust by an hour for the daylight-saving change, as noted under the result.

It shows an error.

Check that the end date and time are after the start.

I want to add a duration to a time.

Use the clock time calculator.

隐私 & 免费使用

我的输入会被保存吗?

你的数据只保留在此标签页中。我们不会收到你的文件、粘贴的文本或计算数值。

这个工具免费吗?

是的。无需注册或付费。

在浏览器中处理

推荐下一步