{"slug":"agentstoolshub-com-api-v1-dev-iso-duration-ea33ec","title":"Convert ISO 8601 durations (P1DT2H30M) to total seconds and back — including wee","host":"agentstoolshub.com","method":"GET","resource":"https://agentstoolshub.com/api/v1/dev/iso-duration","category":"other","description":"Convert ISO 8601 durations (P1DT2H30M) to total seconds and back — including weeks — with a component breakdown. The unambiguous duration math agents should use for retries, TTLs and scheduling instead of mental arithmetic. Use this when an agent needs to durations ↔ seconds, exact in both direction","price_listed":0.002,"price_asked":0.002,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":242,"reported_calls_30d":2,"reported_payers_30d":2,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"value":"P1DT2H30M"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"properties":{"target":{"description":"Convert to","enum":["seconds","iso"],"type":"string"},"value":{"description":"Duration or seconds","type":"string"}},"required":["value"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-18","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":242,"error":null}],"description_full":"Convert ISO 8601 durations (P1DT2H30M) to total seconds and back — including weeks — with a component breakdown. The unambiguous duration math agents should use for retries, TTLs and scheduling instead of mental arithmetic. Use this when an agent needs to durations ↔ seconds, exact in both directions.","last_updated":"2026-10-17T23:26:24.062Z","schemes":["exact"]}