Уақыт ұзақтығын есептеу
Екі сағат уақытының аралығындағы уақытты табу.
Нәтижелер жазу барысында жаңартылмақ.
Калькулятор туралы
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 сағат деп есептеледі, керісінше.
Уақыт таңбасы AM және PM болып жазыла ала ма?
Yes. Both 24-hour (17:30) and 12-hour (5:30 pm) formats are accepted for either field, so you can mix whichever is handy.
Неліктен ондық уақыт көрсетілсін?
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 минут неше минут?
Бұл 510 минут - 8 × 60 = 480, қоса 30. Калькулятор бұл минуттар санының сағат пен минуттармен қатар көрсетілетінін көрсетеді, сондықтан қажетінше көшіріп алуға болады.
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);
Нәтижелер тек жалпы нұсқаулық ретінде ғана есептеледі, қаржылық, медициналық немесе салық кеңесі ретінде емес.