Time Difference

Datetime REST API MCP

Work out how long there is between two times of day, with no dates involved. Handles a shift that crosses midnight — 22:00 to 06:00 is eight hours, not minus sixteen — and can subtract an unpaid break. Accepts 24-hour times and am/pm, and returns the duration both as hours and minutes and as decimal hours for invoicing.

This page documents the HTTP endpoint POST /api/tools/time-difference/execute. See the MCP reference →

Call it over REST

POST https://api.findutils.com/api/tools/time-difference/execute · no API keys · 60 requests/min per IP

Execute — verified arguments

curl -X POST https://api.findutils.com/api/tools/time-difference/execute \
  -H "Content-Type: application/json" \
  -d '{
    "start": "22:00",
    "end": "06:00"
  }'

Parameter schema for this endpoint

curl https://api.findutils.com/api/tools/time-difference

Interactive docs · OpenAPI 3.1 spec · All REST tools

Input schema

Argument Type Required Description
start string yes Start time: "09:00", "9:00:30" or "9:00 am".
end string yes End time, same formats. "24:00" means the end of the day.
overnight string (auto | always | never) no auto wraps past midnight only when the end is not after the start. always puts the end on the NEXT day, so 09:00 to 17:00 becomes 32 hours. never refuses to wrap and errors instead. Default: auto. Default: "auto".
break_minutes number no Unpaid break to subtract, in minutes. Default: 0. Default: 0.

Example arguments (verified)

{
  "start": "22:00",
  "end": "06:00"
}

Also an MCP tool

Claude, Cursor, and any MCP client can call this tool as findutils:time_difference after one connect command.

Connect once

claude mcp add findutils --transport http https://mcp.findutils.com/
Open the MCP reference for Time Difference →

More Datetime tools