date_diff

Pack: datecalc · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/date_diff for the schema, then POST the same URL with its arguments for the data.

Compute the difference between two dates/times (UTC). Returns the signed difference in ms, seconds, minutes, hours, days and weeks, plus a human-readable summary. Accepts ISO-8601 (e.g. “2026-01-01” or “2026-01-01T12:00:00Z”).

Parameters

NameTypeRequiredDescription
fromstringyesStart date/time (ISO-8601).
tostringyesEnd date/time (ISO-8601).

Example call

Arguments

{
  "from": "2025-01-01T00:00:00Z",
  "to": "2025-01-15T12:30:45Z"
}

curl

curl -X POST https://gateway.pipeworx.io/datecalc/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"date_diff","arguments":{"from":"2025-01-01T00:00:00Z","to":"2025-01-15T12:30:45Z"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('date_diff', {
  "from": "2025-01-01T00:00:00Z",
  "to": "2025-01-15T12:30:45Z"
});

More examples

{
  "from": "2024-06-15",
  "to": "2026-01-01"
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the datecalc pack
{
  "mcpServers": {
    "datecalc": {
      "url": "https://gateway.pipeworx.io/datecalc/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build September 29, 2026