{"uid":"cap_P5DG5ThJtKIMfdUgZVUEm","slug":"agent-micro-date-diff-521e32f9","name":"Agent Micro Date Diff","description":"Advanced micro-tools for AI agents: cryptographic randomness, text analysis, math helpers, date arithmetic, web metadata, and IP intelligence. All under $0.01 per request, paid in USDC via x402.","url":"https://agent-micro.annushka1190.workers.dev/v1/date/diff","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"body":{"type":"object"},"type":{"const":"http"},"method":{"enum":["POST"]},"bodyType":{"const":"json"}}}}},"responseSchema":{"type":"json","example":{"ok":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_liFGl1n-Aq6pMXMSy-Ghk","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","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, returning the result in a specified unit (days, hours, months, etc.)","exampleAgentPrompt":"How many days are there between January 15, 2024 and March 28, 2025?","exampleUseCases":[{"title":"Deadline countdown for project management","prompt":"How many days are left between today, June 10 2025, and our project deadline on August 31 2025?"},{"title":"Age calculation from birthdate","prompt":"Calculate how many years and days old someone born on April 3, 1990 is as of today, June 10 2025."},{"title":"Contract duration in months","prompt":"How many full months are there between a contract start date of September 1, 2023 and its end date of February 28, 2025?"}],"resultDescription":"Returns a JSON object with ok: true and the computed difference between the two input dates as a numeric value in the requested unit (e.g. days, hours, months, weeks).","failureModes":["Invalid or unparseable date strings return an error response","Missing required start or end date fields result in a 400-level error","Unsupported unit types may return an error or unexpected result","Payment not provided or insufficient USDC causes a 402 Payment Required response"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, sub-cent date arithmetic computation without spinning up a local library or calendar service. Ideal for AI agents that need quick date difference calculations as part of a larger workflow, especially when already using the agent-micro suite of micro-tools and paying per-call in USDC via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:46:01.271Z","isFirstParty":false}