Калькулятор тривалості часу
Знайдіть тривалість між двома годинниками.
Результати оновлення під час введення.
Про цей калькулятор
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.
Часті запитання
А що, як кінцевий час - до початку?
Калькулятор використовує його як нічний період і додає 24 години. З переходу від 22: 00 до 06: 00, отже, програма вважатиметься 8 годин, а не від' ємною проміжкою.
Чи можна ввести час від ранку до вечора?
Так. Для кожного з полів приймаються 24 години (17: 30) і 12- годинні формати (5: 30 вечора), отже, ви можете змішувати будь- які з них, які зручно використовувати.
Навіщо показувати десяткові години?
Decimal hours (for example 8.5 instead of 8 h 30 m) are what payroll and billing systems use, since you multiply them directly by an hourly rate.
Як перетворити хвилини на десяткові години?
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 годин?
Його призначено для двох годин протягом одного дня (або одного перекинутого на наступний), отже максимальна тривалість є не меншою за 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.
API ⇩ використовувати цей калькулятор з коду
Викликати цей калькулятор як вільний son ⁄ без потреби у клавіші. Надсилайте значення полів, нижче, як параметри запиту або 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);
Результати - це не фінансові, медичні чи податкові поради, а загальні вказівки.