{"uid":"cap_iIxGAgQueBQ10mDTdjXBU","slug":"time-humanize-7a62c88e","name":"time-humanize","description":"Human-readable relative time ('2 hours ago', 'in 3 days') between a datetime and a reference (default now).","url":"https://x402.agentindex.world/time/humanize?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"datetime":{"type":"string","title":"Datetime"},"reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference","default":null}}},"responseSchema":null,"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_BXXqw2JwL5nByjNxYPjXH","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":"Converts a datetime to a human-readable relative time string (e.g. '2 hours ago', 'in 3 days') relative to a reference time (default: now).","exampleAgentPrompt":"Can you turn '2024-11-15T09:30:00Z' into a human-readable relative time like '2 hours ago' or 'in 3 days', compared to right now?","exampleUseCases":[{"title":"Displaying post age in a feed","prompt":"I have a list of blog post timestamps — take '2025-06-10T14:00:00Z' and show me how long ago it was posted in plain English, like '5 days ago'."},{"title":"Countdown to a scheduled event","prompt":"My deployment is scheduled for '2025-07-01T08:00:00Z'. Relative to today, can you tell me how far away that is in a friendly way, like 'in 12 days'?"},{"title":"Relative time between two historical dates","prompt":"I want to know how much time passed between '2023-01-01T00:00:00Z' and '2024-03-15T12:00:00Z' expressed as a human-readable phrase like '1 year ago'."}],"resultDescription":"Returns a human-readable relative time string such as '2 hours ago', 'in 3 days', 'just now', or 'a month ago', representing the time difference between the provided datetime and the reference point (defaulting to the current time).","failureModes":["Invalid or unparseable datetime string returns an error","Malformed reference datetime string causes a parsing failure","Missing required 'datetime' parameter returns a validation error","Extremely far-future or far-past dates may produce imprecise output"],"whenToPreferThis":"Choose this endpoint when you need to quickly convert an ISO or standard datetime string into a friendly, human-readable relative phrase without writing custom formatting logic. It is ideal for display layers, notifications, feed timestamps, or any agent workflow where showing '3 hours ago' is preferable to a raw timestamp. Prefer it over manual calculation when simplicity, speed, and natural language output matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:40:40.746Z","isFirstParty":false,"canonicalSlug":"time-humanize-7a62c88e"}