date_diff

Pack: datecalc · Endpoint: https://gateway.pipeworx.io/datecalc/mcp

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, or use one-click install buttons:

{
  "mcpServers": {
    "datecalc": {
      "url": "https://gateway.pipeworx.io/datecalc/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build August 15, 2026