{"uid":"cap_PdUp1ujOTDFtwDjgG6Exw","slug":"time-format-163c8645","name":"time-format","description":"Format an ISO 8601 datetime using a strftime pattern.","url":"https://x402.agentindex.world/time/format?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"pattern":{"type":"string","title":"Pattern"},"datetime":{"type":"string","title":"Datetime"}}},"responseSchema":{"type":"json","example":{"formatted":"2026/03/15 14:30"}},"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_AzbKtoGh4SxQGggT9DAcp","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":"Formats an ISO 8601 datetime string using a strftime pattern and returns the formatted result.","exampleAgentPrompt":"Format the datetime '2025-06-15T14:30:00Z' using the strftime pattern '%A, %B %d %Y at %I:%M %p' so it reads as a friendly human-readable string.","exampleUseCases":[{"title":"Readable report timestamp header","prompt":"I have a log entry timestamped '2025-01-20T09:15:00Z' — can you format it as 'January 20, 2025 09:15 AM' using the strftime pattern '%B %d, %Y %I:%M %p'?"},{"title":"Day-of-week display for scheduling","prompt":"What day of the week is '2025-12-25T00:00:00Z'? Format it with '%A, %d %B %Y' so I can show it to users in a calendar UI."},{"title":"Short date label for file naming","prompt":"Format '2025-07-04T18:00:00Z' using '%Y%m%d' so I can use it as a compact date suffix in a filename."}],"resultDescription":"Returns the input ISO 8601 datetime string formatted according to the provided strftime pattern — e.g. '2025-06-15T14:30:00Z' with pattern '%B %d, %Y' yields 'June 15, 2025'.","failureModes":["Invalid ISO 8601 datetime string — returns error indicating unparseable datetime","Invalid or unrecognized strftime pattern tokens — may return error or pass them through literally","Missing required parameters (pattern or datetime) — returns validation error","Edge cases like leap years or timezone offsets may behave unexpectedly depending on server handling"],"whenToPreferThis":"Use this endpoint when you need server-side, deterministic strftime-based datetime formatting without relying on client-side locale libraries. Ideal for agents that need to display timestamps in user-facing content, generate filenames, or produce consistently formatted date labels across environments where local timezone/locale libraries may not be available.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:39:18.186Z","isFirstParty":false,"canonicalSlug":"time-format-163c8645"}