{"uid":"cap_4WMATEhZS-awLDOqRrPTm","slug":"agent402-tools-date-difference-calculator-c0e4e5e9","name":"agent402.tools Date Difference Calculator","description":"Difference between two dates/times in ms, seconds, minutes, hours, days, and a human summary.","url":"https://agent402.tools/api/date-diff","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"to":{"description":"End (epoch/ISO, default now)"},"from":{"description":"Start (epoch/ISO)"}}},"responseSchema":{"type":"json","example":{"days":161.4,"human":"161d 10h","millis":13948800000}},"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_P58MO_UCfJOgXvqVFvHtW","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 difference between two dates/times and returns the result in milliseconds, seconds, minutes, hours, days, and a human-readable summary.","exampleAgentPrompt":"How much time has passed since January 1, 2020 — give me the difference in milliseconds, seconds, minutes, hours, and days, plus a plain English summary.","exampleUseCases":null,"resultDescription":"Returns the difference between two datetimes broken down into milliseconds, seconds, minutes, hours, and days, along with a human-readable summary string describing the elapsed duration.","failureModes":["Missing 'from' field returns an error requiring at least a start datetime","Invalid date format (not epoch or ISO) causes a parse error","'to' before 'from' may return a negative duration or error","Malformed JSON body results in a 400-level error","Network timeout if the service is unavailable"],"whenToPreferThis":"Use this endpoint when you need a precise, multi-unit breakdown of the time difference between two dates or timestamps, especially when you also want a human-friendly summary. Prefer it over manual calculation when the result needs to be expressed in multiple units simultaneously.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:09:48.301Z","isFirstParty":false}