Kalkulačka trvania času
Nájdite dĺžku času medzi dvoma časmi hodín.
Výsledky sa aktualizujú počas písania.
O tejto kalkulačke
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 time, it assumes the period runs past midnight into the next day. The result is shown in hours and minutes, as decimal hours, and as the total number of minutes and seconds. It mixes formats freely, so you can type one time in 24-hour and the other with AM/PM so an overnight span reads as a positive length.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 tool converts each time to minutes past midnightThe tool converts each time to minutes past midnightThe tool converts each time to minutes past midnightThe tool converts each time to minutes past midnightThe tool converts each time to minutes past midnightThe tool converts each time to minutes past midnightThe tool converts each time to minutes past midnightThe tool converts each time to minutes past midnightThe tool converts each time to minutes past midnightThe tool converts each time to minutes past midnightThe tool converts each time to minutes past midnightThe tool converts each time to minutes past midnightThe tool converts each time to minutes past midnightThe tool converts each time to minutes past midnightThe tool converts each time to minutes past midnightThe tool converts each time to minutes past midnightThe tool converts each time to minutes past midnightThe tool converts each time to minutes past midnightThe tool converts each time to minutes past midnightThe tool converts each time to minutes past midnightThe tool converts each time to minutes past midnightThe tool converts each time to minutes past midnightThe tool converts each time to minutes past midnightThe tool converts each time to minutes past midnightThe tool converts each time to minutes past midnightThe tool converts each time to minutes past midnightThe tool converts each time to minutes past midnightThe tool converts each time to minutes past midnightThe tool converts each time to minutes past midnightThe tool converts each time to minutes past mid
Často kladené otázky
Čo ak je čas ukončenia pred časom začatia?
Kalkulačka to považuje za nočné obdobie a pridá 24 hodín, takže posunutie od 22:00 do 06:00 sa počíta ako 8 hodín, nie ako záporné rozpätie.
Môžem zadať časy s AM a PM?
Áno, pre obidve polia sú akceptované formáty 24 hodín (17:30) aj 12 hodín (17:30), takže môžete kombinovať, čo je vhodné.
Prečo zobraziť desatinné hodiny?
Desatinné hodiny (napríklad 8,5 namiesto 8 h 30 m) používajú mzdové a fakturačné systémy, pretože ich vynásobíte priamo hodinovou sadzbou.
Ako previesť minúty na desatinné hodiny?
Vydeľte minúty 60: 30 minút je 0,5 hodiny a 15 minút je 0,25 hodiny.Kalkulačka to urobí za vás a zobrazí desatinné číslo hodín vedľa výsledku hodín a minút.
Odpočítava sa z toho obedňajšia prestávka?
Nie, tento nástroj poskytuje hrubý rozdiel medzi dvoma časmi. Ak chcete vziať neplatenú prestávku z pracovnej zmeny, použite kalkulačku hodín alebo časovú kartu, ktoré majú pole prestávky.
Dokáže táto kalkulačka trvania času spracovať rozsah dlhší ako 24 hodín?
Je navrhnutý pre dva časy v rámci jedného dňa (alebo jeden nočný roll na ďalší), takže maximálny rozsah je tesne pod 24 hodín.Pre viacdňové medzery použite kalkulačku rozdielu dátumu.
Koľko minút je 8 hodín a 30 minút?
Je to 510 minút – 8 × 60 je 480 plus 30. Kalkulačka zobrazí toto celkové číslo minút spolu s výsledkom hodín a minút, takže môžete skopírovať, čo potrebujete.
API — použite túto kalkulačku z kódu
Zavolajte túto kalkulačku ako voľný koncový bod JSON – nevyžaduje sa žiadny kľúč.Odoslať hodnoty polí nižšie ako parametre dotazu alebo JSON. Prečítajte si celú dokumentáciu API →
Koncový bod
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);
Výsledky sú odhady len pre všeobecné usmernenie, nie finančné, lekárske alebo daňové poradenstvo.