{"uid":"cap_bNagMql85DKXcGFiSbf9e","slug":"time-formats-c4418d0e","name":"Time Formats","description":"Server time in several formats at once. POST {} and receive the current UTC instant as ISO-8601, unix seconds, unix milliseconds and RFC-2822. Useful for agents that need an authoritative clock they did not compute themselves.","url":"https://x402-echo-service.onrender.com/time","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","bodyType","body","method"],"properties":{"body":{"type":"object","properties":{},"additionalProperties":false},"type":{"const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json"]}}},"output":{"type":"object","required":["type","example"],"properties":{"type":{"const":"json"},"example":{"type":"object","required":["iso8601","unix","unix_ms","rfc2822"],"properties":{"unix":{"type":"integer"},"iso8601":{"type":"string"},"rfc2822":{"type":"string"},"unix_ms":{"type":"integer"}}}}}}},"responseSchema":null,"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_deYJT_AlUR7cj5jgoYw-z","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":"Returns the current UTC time in four formats simultaneously: ISO-8601, Unix seconds, Unix milliseconds, and RFC-2822.","exampleAgentPrompt":"Give me the current server time right now in all standard formats — ISO-8601, Unix seconds, Unix milliseconds, and RFC-2822 — from an authoritative external clock.","exampleUseCases":[{"title":"Authoritative timestamp for audit log","prompt":"I need to record the exact current UTC time from a trusted external server for an audit log entry — give me the timestamp in ISO-8601 format and also as Unix milliseconds."},{"title":"Cross-format time sync for distributed system","prompt":"My pipeline needs the current server time simultaneously in Unix seconds and RFC-2822 so both components can stay in sync — can you fetch that from an external clock right now?"},{"title":"Agent self-clock verification","prompt":"I want to double-check what time it actually is according to an external server, not just my local clock — fetch me the current UTC instant in every standard format."}],"resultDescription":"A JSON object containing the current UTC time expressed in four formats: `iso8601` (string, e.g. '2024-01-15T12:34:56Z'), `unix` (integer seconds since epoch), `unix_ms` (integer milliseconds since epoch), and `rfc2822` (string, e.g. 'Mon, 15 Jan 2024 12:34:56 +0000').","failureModes":["Service temporarily unavailable on Render cold-start (HTTP 503, retry after a few seconds)","Payment not processed or insufficient USDC balance (HTTP 402, check wallet balance)","Network timeout if Render instance is spinning up from idle","Malformed JSON body (though an empty object {} is valid and expected)"],"whenToPreferThis":"Choose this endpoint when an agent needs an authoritative external clock reading it did not compute itself, especially when multiple timestamp formats are needed simultaneously. It is ideal for audit logging, cross-system synchronization, or any scenario where trusting the local system clock is undesirable. Prefer it over parsing time from other API responses or computing timestamps locally when format consistency across ISO-8601, Unix, and RFC-2822 is important.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:32:57.878Z","isFirstParty":false}