{"uid":"cap_K846EGCiBip78Zd2OZq1w","slug":"24k-labs-datetime-toolkit-d7f9f000","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/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_behKmUya0V3k-FFce7zaB","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, epoch-to-ISO conversion, and strftime reformatting in a single API call.","exampleAgentPrompt":"How many days are between 2024-03-15T09:00:00Z and 2025-01-01T00:00:00Z? Use the datetime diff operation.","exampleUseCases":[{"title":"Days until contract expiry","prompt":"I have a contract that started on 2024-06-01 and expires on 2025-06-01 — how many days are left from today, 2025-01-20?"},{"title":"Schedule 90-day follow-up","prompt":"My client onboarded on 2025-01-15 — what date is exactly 90 days later? Give me the result as an ISO 8601 string."},{"title":"Display epoch as readable date","prompt":"I have a Unix timestamp 1713225600 — can you convert it to a human-readable ISO date so I can show it in my UI?"}],"resultDescription":"Returns the computed result depending on the operation: for diff, a numeric duration with unit breakdown; for add/subtract, the resulting datetime in ISO 8601; for epoch conversion, the equivalent ISO string or Unix integer; for strftime, the formatted date string.","failureModes":["Invalid datetime string format returns a 400 parse error","Unsupported strftime directive returns a formatting error","Missing required operation field returns a validation error","Out-of-range dates (e.g. year 0 or far future) may return an overflow error","Malformed interval string (e.g. 'P3Xinvalid') returns a parse failure"],"whenToPreferThis":"Choose this endpoint when you need serverless, one-shot date math without importing a date library — especially useful in agent pipelines where you need to compute offsets, diffs, or reformat timestamps without spinning up a runtime. Prefer it over general-purpose code execution when the task is purely datetime arithmetic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:00:35.901Z","isFirstParty":false}