{"uid":"cap_kRnnT1JuiVecgxA083p9-","slug":"agent402-tools-relative-time-formatter-5cf115ca","name":"agent402.tools Relative Time Formatter","description":"Format a timestamp as a human relative phrase (\"3 hours ago\", \"in 2 days\") versus now or a reference time.","url":"https://agent402.tools/api/relative-time","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"from":{"description":"Reference (default now)"},"time":{"description":"Target timestamp"}}},"responseSchema":{"type":"json","example":{"result":"3 hours ago","seconds":-10800}},"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_43L1qYlaxWqyx0e4NzYi7","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":"Converts a timestamp into a human-readable relative phrase (e.g. '3 hours ago', 'in 2 days') relative to now or a specified reference time.","exampleAgentPrompt":"Can you turn the timestamp '2024-11-01T08:30:00Z' into a human-friendly relative phrase like '3 days ago' or 'in 2 hours', using right now as the reference point?","exampleUseCases":null,"resultDescription":"A human-readable relative time phrase such as '3 hours ago', 'in 2 days', or 'just now', computed from the target timestamp relative to now or a provided reference time.","failureModes":["Invalid or unparseable timestamp format returns an error","Missing required 'time' field causes a validation error","Reference time ('from') in an unrecognized format returns an error","Extremely distant timestamps (e.g. year 9999) may return unexpected results"],"whenToPreferThis":"Use this endpoint when you need to display timestamps in a natural, human-friendly format for end users, dashboards, notifications, or logs — especially when the relative phrasing (e.g. '2 hours ago') is more meaningful than the absolute time. Prefer it over manual date arithmetic when you need consistent, readable output without building your own formatting logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T13:02:43.218Z","isFirstParty":false}