时间期限计算器

查找两个时段之间的时间长度 。

24时(09:30)或上午/下午/上午(9:30)。
24-hour (17:30) or AM/PM (5:30 pm).
期限 —
十进制时数 —
分钟总分钟 —
秒总数 —

输入结果时更新 。

这个计算器给你正确的答案了吗?

关于此计算器

A time duration calculator works out how long there is between two times of day. Enter times in 24-hour HH:MM or with AM/PM (e.g. 5:30 pm). If the end time is earlier than the start, it assumes the period runs past midnight into the next day. The result is shown in hours and minutes, as decimal hours, and as a total number of minutes and seconds.

The tool converts each time to minutes past midnight, subtracts the start from the end, and — if that comes out negative — adds 24 hours so an overnight span reads as a positive length. The same duration is then presented three ways: as plain hours and minutes for reading, as decimal hours for payroll and billing, and as raw minutes and seconds for finer work. It mixes formats freely, so you can type one time in 24-hour and the other with AM/PM.

For example, from 9:00 am to 5:30 pm is 8 hours 30 minutes, or 8.5 decimal hours, or 510 minutes; from 22:00 to 06:00 it correctly returns 8 hours by rolling past midnight. Common uses are timing a shift or a task, working out how long an event lasts, or converting a start-and-end pair into the decimal hours a timesheet needs.

经常问到的问题

如果结束时间是在开始时间之前呢?

The calculator treats it as an overnight period and adds 24 hours. A shift from 22:00 to 06:00 is therefore counted as 8 hours, not a negative span.

我能打字次数 与AM和PM?

是的,对任一字段都接受24小时(17:30)和12小时(5:30)两种格式,以便您可以混合方便的两种格式。

为什么显示十进制小时?

工资单和计费系统使用的是十进制小时(例如8.5小时而不是8小时30米),因为您直接乘以每小时的费率。

我如何将分钟转换为十进制时?

Divide the minutes by 60: 30 minutes is 0.5 hours and 15 minutes is 0.25 hours. The calculator does this for you and shows the decimal-hours figure next to the hours-and-minutes result.

是否减去午餐休息时间?

否。此工具给出了两次之间的原始间隔。要将未支付的工间休息从工作班中拿出来,请使用小时计算器或时间卡,这些工间休息字段是使用小时计算器或时间卡。

计算器能处理超过24小时的时段吗?

设计时一天内为2小时(或隔夜滚动至下一日),最长时间短于24小时。多天空空空使用日期差计算器。

8小时30分钟是多少分钟?

It is 510 minutes — 8 × 60 is 480, plus 30. The calculator shows this total minutes figure alongside the hours-and-minutes result so you can copy whichever you need.

❤️ 爱 Calculator.Free? 分享它

𝕏  X Facebook Reddit
API - 使用代码中的计算器

将此计算器称为自由 JSON 端点 。 不需要按键 。 将字段值发送到下面作为查询参数或 JSON 。 任何您省略的, 都会使用相同的默认值, 此页面预填的默认值是预填的; 未知参数是 400, 而不是静音零 。 读取 API 全部文件 →

终点

GET https://calculator.free/api/v1/time-duration/

curl

curl "https://calculator.free/api/v1/time-duration/?start=09:00&end=17:30"

JavaScript fetch()

const r = await fetch(
  "https://calculator.free/api/v1/time-duration/?" + new URLSearchParams({
    "start": "09:00",
    "end": "17:30"
  }));
const data = await r.json();
console.log(data.results);

成果仅是一般指导的估计数,而不是财务、医疗或税务咨询。