hesaplayıcı
Menu

Time Tools: API and MCP

Time category REST API and MCP reference for 5 tools: input fields, limits, outputs, example requests and real answers. Free, no key.

GET /api/v1/tools?category=time/mcp/time/api/v1/openapi.json

Age Calculator

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

Input

FieldTypeConstraintsDefaultDescription
birthDate (required)stringDate of birth
onstringAge on this date · Leave it empty to use today (Türkiye time).

Output

FieldTypeDescription
yearsnumberAge (years)
monthsnumberMonths after the full years (months)
daysnumberDays after the full months (days)
totalDaysnumberTotal days lived (days)
totalWeeksnumberFull weeks lived (weeks)
daysToBirthdaynumberDays to the next birthday (days)

Example request

curl -X POST https://hesaplayici.com/api/v1/tools/time.age/execute \
  -H 'Content-Type: application/json' \
  -d '{"input":{"birthDate":"1990-05-15","on":"2026-09-13"},"locale":"en"}'
Example answer
{
  "output": {
    "years": 36,
    "months": 3,
    "days": 29,
    "totalDays": 13270,
    "totalWeeks": 1895,
    "daysToBirthday": 244
  },
  "steps": [
    {
      "id": "years",
      "formula": "age = difference of the years − (1 if the birthday has not come yet)",
      "substitution": "age = (2026 − 1990) − 0",
      "value": 36,
      "unit": "years"
    },
    {
      "id": "totalDays",
      "formula": "total days = date − birth date",
      "substitution": "total days = 2026-09-13 − 1990-05-15",
      "value": 13270,
      "unit": "days"
    },
    {
      "id": "totalWeeks",
      "formula": "full weeks = ⌊total days / 7⌋",
      "substitution": "full weeks = ⌊13,270 / 7⌋",
      "value": 1895,
      "unit": "weeks"
    },
    {
      "id": "daysToBirthday",
      "formula": "days left = next birthday − date",
      "substitution": "days left = 2027-05-15 − 2026-09-13",
      "value": 244,
      "unit": "days"
    }
  ],
  "notes": [],
  "meta": {
    "toolVersion": "1.0.0",
    "locale": "en"
  },
  "citation": {
    "url": "https://hesaplayici.com/en/time/age-calculator",
    "title": "Age Calculator"
  }
}

Date Difference Calculator

Id
time.date-difference
Version
1.0.0
Access
Free
Tool page
Date Difference Calculator
Schema
GET /api/v1/tools/time.date-difference

Input

FieldTypeConstraintsDefaultDescription
start (required)stringStart date
end (required)stringEnd date
includeEndstringno | yesnoCount the end day?

Output

FieldTypeDescription
daysnumberDays (days)
weeksnumberFull weeks (weeks)
weekDaysnumberDays after the full weeks (days)
yearsnumberYears (years)
monthsnumberMonths (months)
monthDaysnumberDays after the full months (days)
businessDaysnumberBusiness days (Monday–Friday) (days)

Example request

curl -X POST https://hesaplayici.com/api/v1/tools/time.date-difference/execute \
  -H 'Content-Type: application/json' \
  -d '{"input":{"start":"2026-01-01","end":"2026-12-31","includeEnd":"yes"},"locale":"en"}'
Example answer
{
  "output": {
    "days": 365,
    "weeks": 52,
    "weekDays": 1,
    "years": 1,
    "months": 0,
    "monthDays": 0,
    "businessDays": 261
  },
  "steps": [
    {
      "id": "days",
      "formula": "days = end − start + 1",
      "substitution": "days = 2026-12-31 − 2026-01-01 + 1",
      "value": 365,
      "unit": "days"
    },
    {
      "id": "weeks",
      "formula": "full weeks = ⌊days / 7⌋",
      "substitution": "full weeks = ⌊365 / 7⌋",
      "value": 52,
      "unit": "weeks"
    },
    {
      "id": "weekDays",
      "formula": "remaining days = days − 7 × full weeks",
      "substitution": "remaining days = 365 − 7 × 52",
      "value": 1,
      "unit": "days"
    },
    {
      "id": "businessDays",
      "formula": "business days = days − Saturdays and Sundays",
      "substitution": "business days = 365 − 104",
      "value": 261,
      "unit": "days"
    }
  ],
  "notes": [],
  "meta": {
    "toolVersion": "1.0.0",
    "locale": "en"
  },
  "citation": {
    "url": "https://hesaplayici.com/en/time/date-difference-calculator",
    "title": "Date Difference Calculator"
  }
}

Day Counter

Id
time.day-counter
Version
1.0.0
Access
Free
Tool page
Day Counter
Schema
GET /api/v1/tools/time.day-counter

Input

FieldTypeConstraintsDefaultDescription
target (required)stringTarget date
fromstringStart date · Leave it empty to use today (Türkiye time).

Output

FieldTypeDescription
daysnumberDays until the target (days)
weeksnumberFull weeks (weeks)
weekDaysnumberDays after the full weeks (days)
passedbooleanThe target date has passed: a negative value is the number of days since.

Example request

curl -X POST https://hesaplayici.com/api/v1/tools/time.day-counter/execute \
  -H 'Content-Type: application/json' \
  -d '{"input":{"target":"2027-01-01","from":"2026-09-13"},"locale":"en"}'
Example answer
{
  "output": {
    "days": 110,
    "weeks": 15,
    "weekDays": 5,
    "passed": false
  },
  "steps": [
    {
      "id": "days",
      "formula": "days left = target date − start date",
      "substitution": "days left = 2027-01-01 − 2026-09-13",
      "value": 110,
      "unit": "days"
    },
    {
      "id": "weeks",
      "formula": "full weeks = ⌊|days left| / 7⌋",
      "substitution": "full weeks = ⌊110 / 7⌋",
      "value": 15,
      "unit": "weeks"
    },
    {
      "id": "weekDays",
      "formula": "remaining days = |days left| − 7 × full weeks",
      "substitution": "remaining days = 110 − 7 × 15",
      "value": 5,
      "unit": "days"
    }
  ],
  "notes": [],
  "meta": {
    "toolVersion": "1.0.0",
    "locale": "en"
  },
  "citation": {
    "url": "https://hesaplayici.com/en/time/day-counter-calculator",
    "title": "Day Counter"
  }
}

Hours Calculator

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"
  }
}

Türkiye Working Days Calculator

Id
time.working-days.tr
Version
1.0.0
Access
Free
Tool page
Türkiye Working Days Calculator
Schema
GET /api/v1/tools/time.working-days.tr

Input

FieldTypeConstraintsDefaultDescription
modestringbetween | addbetweenWhat to calculate
start (required)stringStart date · Between two dates this day counts. When adding working days, the count starts the next day.
endstringEnd date · This day counts too.
daysinteger≥ 1, ≤ 1,000Working days to add (working days)
saturdaystringno | yesnoIs Saturday a working day?
halfDaysstringhalf | working | offhalfHalf days (holiday eves, 28 October)
administrativeLeavestringno | yesnoAdministrative leave days · Days a circular gives public servants off. They are not public holidays.

Output

FieldTypeDescription
endDatestringDate of the last working day
workingDaysnumberWorking days (days)
calendarDaysnumberCalendar days (days)
restDaysnumberWeekend days (days)
holidayDaysnumberPublic holidays on working days (days)
halfHolidaysnumberHalf-day holidays on working days (days)
leaveDaysnumberAdministrative leave on working days (days)
daysarrayWorking days taken off

Example request

curl -X POST https://hesaplayici.com/api/v1/tools/time.working-days.tr/execute \
  -H 'Content-Type: application/json' \
  -d '{"input":{"mode":"between","start":"2026-01-01","end":"2026-12-31","saturday":"no","halfDays":"half","administrativeLeave":"no"},"locale":"en"}'
Example answer
{
  "output": {
    "workingDays": 249.5,
    "calendarDays": 365,
    "restDays": 104,
    "holidayDays": 11.5,
    "halfHolidays": 3,
    "days": [
      {
        "day": "2026-01-01",
        "holiday": 1,
        "leave": 0
      },
      {
        "day": "2026-03-19",
        "holiday": 0.5,
        "leave": 0
      },
      {
        "day": "2026-03-20",
        "holiday": 1,
        "leave": 0
      },
      {
        "day": "2026-04-23",
        "holiday": 1,
        "leave": 0
      },
      {
        "day": "2026-05-01",
        "holiday": 1,
        "leave": 0
      },
      {
        "day": "2026-05-19",
        "holiday": 1,
        "leave": 0
      },
      {
        "day": "2026-05-26",
        "holiday": 0.5,
        "leave": 0
      },
      {
        "day": "2026-05-27",
        "holiday": 1,
        "leave": 0
      },
      {
        "day": "2026-05-28",
        "holiday": 1,
        "leave": 0
      },
      {
        "day": "2026-05-29",
        "holiday": 1,
        "leave": 0
      },
      {
        "day": "2026-07-15",
        "holiday": 1,
        "leave": 0
      },
      {
        "day": "2026-10-28",
        "holiday": 0.5,
        "leave": 0
      },
      {
        "day": "2026-10-29",
        "holiday": 1,
        "leave": 0
      }
    ]
  },
  "steps": [
    {
      "id": "calendarDays",
      "formula": "calendar days = end − start + 1",
      "substitution": "calendar days = 2026-12-31 − 2026-01-01 + 1",
      "value": 365,
      "unit": "days"
    },
    {
      "id": "restDays",
      "formula": "weekend days = Saturdays + Sundays",
      "substitution": "weekend days = 52 + 52",
      "value": 104,
      "unit": "days"
    },
    {
      "id": "holidayDays",
      "formula": "public holidays = full days + half days × 0.5",
      "substitution": "public holidays = 10 + 3 × 0.5",
      "value": 11.5,
      "unit": "days"
    },
    {
      "id": "workingDays",
      "formula": "working days = calendar days − weekend days − public holidays",
      "substitution": "working days = 365 − 104 − 11.5",
      "value": 249.5,
      "unit": "days"
    }
  ],
  "notes": [
    {
      "kind": "difference",
      "code": "administrative_leave_in_range",
      "values": {
        "days": 1.5
      },
      "text": "Public servants had 1.5 days of administrative leave in this range; the result counts them as working days. If you are a public servant, turn on the administrative leave option."
    }
  ],
  "meta": {
    "toolVersion": "1.0.0",
    "dataVersion": "2026-01-01",
    "locale": "en"
  },
  "citation": {
    "url": "https://hesaplayici.com/en/time/turkey-working-days-calculator",
    "title": "Türkiye Working Days Calculator"
  }
}