hesaplayıcı
Menu

Hours Calculator: API and MCP

Hours Calculator over REST and MCP: input fields, limits, outputs, one example request and its real answer. Free, no sign-up.

GET /api/v1/tools/time.hours/mcp/time

Id
time.hours
Version
1.0.0
Access
Free
Tool page
Hours Calculator
Schema
GET /api/v1/tools/time.hours

Input

FieldTypeConstraintsDefaultDescription
modestringbetween | addbetweenWhat to calculate
startstringStart time · On the clock chosen above: 24-hour or 12-hour.
endstringEnd time · An end before the start is on the next day. Midnight: 24:00 or 12:00 AM.
operationstringadd | subtractaddOperation
hoursinteger≥ 0, ≤ 10,0000Hours (hours)
minutesinteger≥ 0, ≤ 100,0000Minutes (min)
clockstring12 | 2424Clock

Output

FieldTypeDescription
durationstringTime
timestringTime reached
dayOffsetnumberDay offset (days)
decimalHoursnumberDecimal hours (hours)
totalMinutesnumberTotal minutes (min)

Example request

curl -X POST https://hesaplayici.com/api/v1/tools/time.hours/execute \
  -H 'Content-Type: application/json' \
  -d '{"input":{"mode":"between","start":"09:00","end":"17:30","operation":"add","hours":0,"minutes":0,"clock":"24"},"locale":"en"}'
Example answer
{
  "output": {
    "duration": "8:30",
    "decimalHours": 8.5,
    "totalMinutes": 510
  },
  "steps": [
    {
      "id": "totalMinutes",
      "formula": "time = end − start (+ 24:00 if the end is earlier)",
      "substitution": "17:30 − 09:00",
      "value": 510,
      "unit": "min"
    },
    {
      "id": "decimalHours",
      "formula": "decimal hours = minutes / 60",
      "substitution": "510 / 60",
      "value": 8.5,
      "unit": "hours"
    }
  ],
  "notes": [],
  "meta": {
    "toolVersion": "1.0.0",
    "locale": "en"
  },
  "citation": {
    "url": "https://hesaplayici.com/en/time/hours-calculator",
    "title": "Hours Calculator"
  }
}