{"uid":"cap_EZcYxJ8FzhQX2yXAVKnfZ","slug":"24k-labs-datetime-toolkit-6ae82d04","name":"24K Labs Datetime Toolkit","description":"One-call date math: diff two datetimes, add/subtract an interval, epoch<->ISO conversion, and reformatting via strftime.","url":"https://api.24klabs.ai/api/v1/datetime-toolkit","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"a":{"type":"string"},"b":{"type":"string"},"op":{"type":"string"}}},"responseSchema":{"type":"json","example":{"seconds":6350000}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_tNbQ_fynfBQqEJhRufUEx","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Performs date/time arithmetic: diff two datetimes, add/subtract intervals, convert between epoch and ISO-8601, and reformat via strftime patterns.","exampleAgentPrompt":"How many days are between March 15, 2025 and November 3, 2025, and what date is 45 days after March 15?","exampleUseCases":[{"title":"Countdown to deadline calculation","prompt":"How many days are left between today, June 10 2025, and our contract deadline of August 31 2025? Give me the difference in days and hours."},{"title":"Scheduling future event date","prompt":"What date is exactly 90 days after July 1 2025? Format the result as a readable string like 'Wednesday, September 29, 2025'."},{"title":"Epoch timestamp to human date","prompt":"I have a Unix timestamp 1735689600 — can you convert that to an ISO-8601 datetime string and also tell me what day of the week it falls on?"}],"resultDescription":"Returns the computed result depending on operation: a numeric difference (in days, hours, seconds, etc.), a new datetime after adding/subtracting an interval, an ISO-8601 string converted from epoch or vice versa, or a custom-formatted date string produced by strftime.","failureModes":["Invalid datetime string format returns a parse error","Unsupported strftime directive may produce partial or empty output","Negative interval or ambiguous timezone can yield unexpected results","Missing required operation field returns a 400 bad request","Epoch value out of representable range may cause overflow error"],"whenToPreferThis":"Choose this endpoint when you need lightweight, serverless date math without setting up a library — especially for epoch↔ISO conversion, interval arithmetic, or custom date formatting. It's ideal for agents that need quick one-off datetime computations without executing code locally. Prefer it over general-purpose code execution endpoints when the task is purely date/time manipulation and you want a predictable, structured JSON response.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T13:00:08.476Z","isFirstParty":false}