{"uid":"cap_aZusUniSDPidYP9LDzyeG","slug":"x402-timestamp-converter-5235061f","name":"x402 Timestamp Converter","description":"USDC pay-per-call APIs for AI agents via the x402 protocol (v2, exact, Base mainnet). Send a request, receive HTTP 402 with payment requirements, pay with @x402/fetch or any x402 client, retry with the PAYMENT-SIGNATURE header.","url":"https://call402.com/api/timestamp-convert?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"date":{"type":"string","description":"ISO date string"},"timestamp":{"type":"number","description":"Unix seconds or milliseconds"}}},"responseSchema":{"type":"json","example":{"iso_utc":"2025-10-21T00:00:00.000Z","unix_ms":1761004800000,"unix_seconds":1761004800,"asia_shanghai":"2025-10-21 08:00:00","unix_seconds_input_echo":1761004800}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_StxFO2rsQ5lmyvczRGXhr","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts between ISO date strings and Unix timestamps (seconds/milliseconds), returning multiple timezone-aware representations","exampleAgentPrompt":"Convert October 21, 2025 to its Unix timestamp in both seconds and milliseconds, and also give me the equivalent UTC ISO string and Shanghai local time.","exampleUseCases":[{"title":"Log timestamp normalization for an agent","prompt":"I have a log entry with the date '2025-10-21' and I need the Unix timestamp in both seconds and milliseconds so I can index it correctly — can you convert that for me?"},{"title":"Cross-timezone scheduling check","prompt":"What is the Asia/Shanghai local time equivalent of Unix timestamp 1761004800? Also give me the ISO UTC string so I can double-check the conversion."},{"title":"Epoch to human-readable date for a report","prompt":"I've got a Unix timestamp of 1761004800 that appears in a data export — can you convert it to a readable ISO date string and tell me what time that is in UTC?"}],"resultDescription":"A JSON object containing the ISO UTC datetime string, Unix timestamp in milliseconds, Unix timestamp in seconds, Asia/Shanghai formatted local datetime, and an echo of the original Unix seconds input if provided.","failureModes":["Missing or malformed input (neither date nor timestamp provided) results in a 400 error","Invalid ISO date string format causes a parsing failure","Ambiguous timestamps (seconds vs milliseconds not inferable) may produce incorrect conversions","HTTP 402 returned on first request requiring USDC micropayment via x402 protocol before the response is served","Network timeout if payment signature is not attached within the retry window"],"whenToPreferThis":"Use this endpoint when an AI agent needs rapid, deterministic conversion between ISO date strings and Unix epoch timestamps, especially when multi-timezone output (UTC + Asia/Shanghai) is needed simultaneously. Prefer this over building date math locally when the agent environment lacks reliable datetime libraries or when operating in a pay-per-call context on Base mainnet via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-28T06:38:03.244Z","isFirstParty":false,"canonicalSlug":"x402-timestamp-converter-5235061f"}