{"uid":"cap_gWNcI-MqjEdZPhSAe7d45","slug":"date-difference-calculator-85f76766","name":"Date Difference Calculator","description":"Difference between two ISO-8601 timestamps in days/seconds (date diff).","url":"https://conclavex402p04.pythonanywhere.com/u/date-diff?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object"},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"pathParams":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"days":1,"seconds":86400}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vifIPoBGI0rP5pkR9R-gE","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the difference between two ISO-8601 timestamps, returning the result in both days and seconds.","exampleAgentPrompt":"How many days and seconds are there between 2024-01-15T00:00:00Z and 2025-03-22T12:30:00Z?","exampleUseCases":[{"title":"Deadline countdown for project tracker","prompt":"How many days are left between today, 2025-06-01T00:00:00Z, and our project deadline on 2025-09-30T00:00:00Z?"},{"title":"Subscription age audit","prompt":"Tell me how many days and seconds have passed since a subscription started on 2023-11-01T09:00:00Z up until now, 2025-06-01T09:00:00Z."},{"title":"SLA breach detection","prompt":"I need to know if more than 86400 seconds have elapsed between a ticket opened at 2025-05-30T08:00:00Z and closed at 2025-05-31T10:30:00Z — what's the exact difference in days and seconds?"}],"resultDescription":"A JSON object containing two numeric fields: 'days' (the absolute difference in whole days) and 'seconds' (the absolute difference in total seconds) between the two provided ISO-8601 timestamps.","failureModes":["Invalid or missing ISO-8601 timestamps in the request body result in a 4xx error","Malformed JSON body causes a parsing error response","Timestamps in unsupported formats (non-ISO-8601) may return an error or unexpected result","Payment failure or insufficient USDC balance results in a 402 Payment Required response"],"whenToPreferThis":"Choose this endpoint when you need a quick, reliable computation of the time difference between two known ISO-8601 timestamps and want the result expressed in both days and seconds without setting up local date arithmetic. Ideal for agents performing scheduling, SLA checks, subscription age calculations, or any workflow requiring elapsed-time logic via a simple pay-per-call API.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T06:42:30.879Z","isFirstParty":false,"canonicalSlug":"date-difference-calculator-85f76766"}