{"uid":"cap_zSDXSHM89oiWH8ybvEXqS","slug":"time-between-44f60281","name":"time-between","description":"Duration between two ISO 8601 datetimes, as total seconds and a days/hours/minutes/seconds breakdown.","url":"https://x402.agentindex.world/time/between?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"end":{"type":"string","title":"End"},"start":{"type":"string","title":"Start"}}},"responseSchema":{"type":"json","example":{"days":1,"hours":1,"minutes":30,"seconds":0,"total_seconds":91800}},"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_PqXxGUYdUp3i2EeMugXch","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":"Calculates the duration between two ISO 8601 datetimes, returning total seconds and a days/hours/minutes/seconds breakdown.","exampleAgentPrompt":"How long is it from 2024-03-15T08:30:00Z to 2024-03-17T14:45:00Z? Give me the total seconds and break it down into days, hours, minutes, and seconds.","exampleUseCases":[{"title":"Measure job runtime duration","prompt":"My batch job started at 2024-11-01T09:15:00Z and ended at 2024-11-01T11:47:32Z — how long did it run in total seconds and broken down into hours, minutes, and seconds?"},{"title":"Count down days until an event","prompt":"How many days, hours, minutes, and seconds are there from right now — 2025-06-10T12:00:00Z — until my event on 2025-12-31T23:59:59Z?"},{"title":"Calculate SLA breach window","prompt":"Our SLA says we have 72 hours to respond. A ticket came in at 2025-05-20T08:00:00Z and we responded at 2025-05-23T10:30:00Z — what was the actual elapsed time in total seconds and days/hours/minutes breakdown?"}],"resultDescription":"Returns the duration between the two provided ISO 8601 datetimes as a total number of seconds plus a structured breakdown into days, hours, minutes, and seconds components.","failureModes":["Invalid or non-ISO-8601 datetime strings result in a parse error","Missing start or end parameter causes a bad request error","End datetime earlier than start datetime may return a negative duration or error","Malformed query parameters cause a 400-level response"],"whenToPreferThis":"Use this endpoint when you need a precise, structured time-duration calculation between two known ISO 8601 timestamps — especially when you want both a raw total-seconds figure and a human-readable days/hours/minutes/seconds breakdown in a single call. Prefer it over manual calculation or LLM arithmetic for accuracy and reliability.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T07:03:01.348Z","isFirstParty":false,"canonicalSlug":"time-between-44f60281"}