Date & Time
ISO 8601 Duration Parser & Arithmetic Workbench
Parse ISO 8601 durations, validate ISO 8601-2 extensions, run calendar-true arithmetic, sort by real length at an anchor, and diff datetimes.
html· HTML resultOpen tool
Quick start
Call this tool from your code in three languages.
cURL
curl -X POST 'https://api.elysiatools.com/en/api/tools/iso-8601-duration-parser-arithmetic-workbench' \
-H 'Content-Type: application/json' \
-d '{"mode":"parse","durationsInput":"P1Y2M3DT4H5M6S\nP3W\nPT36H\n-PT30M\nP0D\nP2W3D","anchorDatetime":"2026-01-15T00:00:00Z","datetimeA":"2026-01-01T00:00:00Z (diff mode)","datetimeB":"2026-02-15T12:30:00Z (diff mode)"}'API reference
Send a POST request with your inputs as JSON. File parameters require a separate upload first.
Endpoint
HTTP
POST https://api.elysiatools.com/en/api/tools/iso-8601-duration-parser-arithmetic-workbenchParameters
| Name | Type | Required | Description |
|---|---|---|---|
| mode | select | Yes | — |
| durationsInput | textarea | No | — |
| anchorDatetime | text | No | — |
| datetimeA | text | No | — |
| datetimeB | text | No | — |
Response format
MCP integration
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Server configuration
Add this block to your MCP client configuration:
mcp.json
{
"mcpServers": {
"elysiatools-iso-8601-duration-parser-arithmetic-workbench": {
"name": "iso-8601-duration-parser-arithmetic-workbench",
"description": "Parse ISO 8601 durations, validate ISO 8601-2 extensions, run calendar-true arithmetic, sort by real length at an anchor, and diff datetimes.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=iso-8601-duration-parser-arithmetic-workbench",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}List available tools
After connecting to the SSE endpoint, list the exposed tools:
tools/list
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Call this tool
Invoke the tool by its id, passing arguments built from its parameters:
tools/call
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "iso-8601-duration-parser-arithmetic-workbench",
"arguments": {
"mode": "parse",
"durationsInput": "P1Y2M3DT4H5M6S\nP3W\nPT36H\n-PT30M\nP0D\nP2W3D",
"anchorDatetime": "2026-01-15T00:00:00Z",
"datetimeA": "2026-01-01T00:00:00Z (diff mode)",
"datetimeB": "2026-02-15T12:30:00Z (diff mode)"
}
}
}Chain multiple tools in one session with a comma-separated toolId list, e.g. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (max 20).