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
| Field | Type | Constraints | Default | Description |
|---|---|---|---|---|
birthDate (required) | string | Date of birth | ||
on | string | Age on this date · Leave it empty to use today (Türkiye time). |
Output
| Field | Type | Description |
|---|---|---|
years | number | Age (years) |
months | number | Months after the full years (months) |
days | number | Days after the full months (days) |
totalDays | number | Total days lived (days) |
totalWeeks | number | Full weeks lived (weeks) |
daysToBirthday | number | Days 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
| Field | Type | Constraints | Default | Description |
|---|---|---|---|---|
start (required) | string | Start date | ||
end (required) | string | End date | ||
includeEnd | string | no | yes | no | Count the end day? |
Output
| Field | Type | Description |
|---|---|---|
days | number | Days (days) |
weeks | number | Full weeks (weeks) |
weekDays | number | Days after the full weeks (days) |
years | number | Years (years) |
months | number | Months (months) |
monthDays | number | Days after the full months (days) |
businessDays | number | Business 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
| Field | Type | Constraints | Default | Description |
|---|---|---|---|---|
target (required) | string | Target date | ||
from | string | Start date · Leave it empty to use today (Türkiye time). |
Output
| Field | Type | Description |
|---|---|---|
days | number | Days until the target (days) |
weeks | number | Full weeks (weeks) |
weekDays | number | Days after the full weeks (days) |
passed | boolean | The 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
| Field | Type | Constraints | Default | Description |
|---|---|---|---|---|
mode | string | between | add | between | What to calculate |
start | string | Start time · On the clock chosen above: 24-hour or 12-hour. | ||
end | string | End time · An end before the start is on the next day. Midnight: 24:00 or 12:00 AM. | ||
operation | string | add | subtract | add | Operation |
hours | integer | ≥ 0, ≤ 10,000 | 0 | Hours (hours) |
minutes | integer | ≥ 0, ≤ 100,000 | 0 | Minutes (min) |
clock | string | 12 | 24 | 24 | Clock |
Output
| Field | Type | Description |
|---|---|---|
duration | string | Time |
time | string | Time reached |
dayOffset | number | Day offset (days) |
decimalHours | number | Decimal hours (hours) |
totalMinutes | number | Total 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
| Field | Type | Constraints | Default | Description |
|---|---|---|---|---|
mode | string | between | add | between | What to calculate |
start (required) | string | Start date · Between two dates this day counts. When adding working days, the count starts the next day. | ||
end | string | End date · This day counts too. | ||
days | integer | ≥ 1, ≤ 1,000 | Working days to add (working days) | |
saturday | string | no | yes | no | Is Saturday a working day? |
halfDays | string | half | working | off | half | Half days (holiday eves, 28 October) |
administrativeLeave | string | no | yes | no | Administrative leave days · Days a circular gives public servants off. They are not public holidays. |
Output
| Field | Type | Description |
|---|---|---|
endDate | string | Date of the last working day |
workingDays | number | Working days (days) |
calendarDays | number | Calendar days (days) |
restDays | number | Weekend days (days) |
holidayDays | number | Public holidays on working days (days) |
halfHolidays | number | Half-day holidays on working days (days) |
leaveDays | number | Administrative leave on working days (days) |
days | array | Working 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"
}
}