{"uid":"cap_iAkkkYIRNDDOV8i8x1PjB","slug":"delx-iso-duration-parse-b0018d0a","name":"Delx ISO Duration Parse","description":"Parse ISO-8601 duration subset PnDTnHnMnS into total seconds — first-party local utility for agent preflight and proven micro-utils expansion. Returns deterministic machine-readable JSON for $0.001 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, no web search, no live RPC, and no mediagen. Results are advisory; the caller owns authorization, budgets, and production controls. Sibling of Delx routes that already co…","url":"https://api.delx.ai/api/v1/x402/iso-duration-parse","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"duration":{"type":"string","description":"Input field: duration."}}},"responseSchema":{"type":"json","example":{"ok":true,"days":0,"hours":1,"schema":"delx/util-iso-duration-parse/v1","minutes":30,"seconds":0,"duration":"PT1H30M","total_seconds":5400}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_C_4ZzTSamjNsxTcH3XDPh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses an ISO-8601 duration string (PnDTnHnMnS subset) and returns the equivalent total number of seconds as deterministic JSON","exampleAgentPrompt":"Can you parse the ISO 8601 duration string P1DT2H30M and tell me how many total seconds that represents?","exampleUseCases":[{"title":"Agent preflight timeout validation","prompt":"I need to know how many total seconds are in the duration P0DT0H45M so I can check if it fits within my 3600-second budget before starting the job."},{"title":"Scheduling interval normalization","prompt":"Convert the ISO duration PT12H30M into total seconds so I can use it as a cron-style interval in my pipeline config."},{"title":"SLO window duration computation","prompt":"I have a duration string P7DT0H0M0S from our SLO config — can you parse that into seconds so I know the exact measurement window length?"}],"resultDescription":"A deterministic JSON object containing the total number of seconds equivalent to the provided ISO-8601 duration string, computed locally with no external calls or state retention.","failureModes":["Invalid or malformed ISO duration string returns an error response","Duration components outside the supported PnDTnHnMnS subset (e.g. years/months) may not be handled","Empty or missing duration field returns a validation error","Unsupported duration formats like PnYnM are outside the declared subset and may fail"],"whenToPreferThis":"Choose this endpoint when you need a fast, deterministic, stateless conversion of an ISO-8601 duration string to total seconds with no external dependencies, no latency from live services, and guaranteed reproducibility — ideal for agent preflight checks, budget calculations, and scheduling math.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:49:54.887Z","isFirstParty":false}