time_duration
Duration parser and converter — Parse any duration and convert it: ISO 8601 (P1DT2H30M, PT90M, P2W), human text (1h 30m, 2 days 3 hours, an hour and a half, 1.5h, 90 minutes, 2 fortnights), clock (1:30:00, D:HH:MM:SS) or plain seconds (unit= ms|s|m|h|d). Returns components, totals in ms/seconds/minutes/hours/days/weeks, normalized ISO 8601, human-readable text, clock HH:MM:SS and compact 1h30m forms. Optional start= ISO date/time (+ direction=add|subtract) returns the exact end date with calendar-aware months (Jan 31 + P1M = Feb 28) and its weekday. Offline. Price: $0.001 USDC (Base, via x402).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"d": "<d>"
},
"name": "time_duration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| d | Yes | 2 days 3 hours 15 minutes |