ISO 8601 Duration

live Utility

Parse ISO 8601 durations (PT1H30M) to components + total seconds, and format seconds back to ISO 8601 + human-readable. Keyless, offline.

2 tools
0ms auth
free tier 50 calls/day

Tools

parse_duration

Parse an ISO 8601 duration string (e.g. "PT1H30M", "P1Y2M10DT2H") into its components and an approximate total in seconds (keyless, offline). Note: months=30d, years=365d for the estimate.

No parameters required.

Try it
format_duration

Convert a number of seconds into an ISO 8601 duration string and a human-readable form (keyless, offline).

No parameters required.

Try it

Test with curl

The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.

List available tools
bash
curl -X POST https://gateway.pipeworx.io/duration/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Call a tool
bash
curl -X POST https://gateway.pipeworx.io/duration/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"parse_duration","arguments":{}}}'

Use with the SDK

Install @pipeworx/sdk to call tools from any TypeScript/Node project.

TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("parse_duration", {});
ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("parse iso 8601 durations (pt1h30m) to components + total seconds, and format seconds back to iso 8601 + human-readable");