{"uid":"cap_LWtBnn1zG2j4CjEM2j5KU","slug":"agent402-tools-add-time-41195a82","name":"agent402.tools Add Time","description":"Add (or subtract) a duration to a date. duration like \"2d\", \"-3h\", \"1w 2d\", \"90m\". Returns the resulting UTC ISO timestamp.","url":"https://agent402.tools/api/add-time","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"date":{"description":"Base date (default now)"},"duration":{"type":"string","description":"e.g. \"2d\", \"-3h\", \"1w\""}}},"responseSchema":{"type":"json","example":{"result":"2026-06-13T15:00:00.000Z"}},"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_rbFzilv-KQLQbOiEbXiij","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":"Adds or subtracts a human-readable duration string to a given date and returns the resulting UTC ISO timestamp.","exampleAgentPrompt":"What UTC timestamp do I get if I add 1 week and 2 days to March 15, 2025 at 09:00 UTC? Use a duration like '1w 2d'.","exampleUseCases":null,"resultDescription":"A UTC ISO 8601 timestamp string representing the computed date and time after applying the specified duration offset to the base date.","failureModes":["Invalid or unrecognized duration format returns an error (e.g. '2x' or empty string)","Malformed base date string causes a parse error","Missing duration parameter results in a validation error","Negative duration that produces a date before Unix epoch may cause issues"],"whenToPreferThis":"Use this endpoint when you need to arithmetically offset a date or time by a human-friendly duration string (e.g. '2d', '-3h', '1w 2d', '90m') and get back a precise UTC ISO timestamp. Prefer this over manual date math or building duration parsers yourself, especially for agents handling scheduling, expiry calculations, or relative time offsets.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:02.944Z","isFirstParty":false}