{"uid":"cap_D-xqW3EVhHYwStf8n-ge_","slug":"47620-utilities-api-timestamp-converter-f8cd4639","name":"47620 Utilities API – Timestamp Converter","description":"Convert between unix epoch and human time: pass ?value=<seconds|ms|ISO-string> and get back epoch (s + ms), ISO-8601 UTC, and the value in a target timezone (?tz=America/Santiago, default UTC). Units are auto-detected (10-digit = seconds, 13-digit = ms).","url":"https://47620.xyz/x/util/timestamp?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"fields":{"type":"string","description":"Optional comma-separated top-level response keys to keep (e.g. \"health,slot,solUsd\"). Omit for the full payload."}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["ok","endpoint"],"properties":{"ok":{"type":"boolean"},"endpoint":{"type":"string"}},"additionalProperties":true}},"additionalProperties":false}}},"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_Oz2ECR_qEl5G-CkwPHAT-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a Unix epoch (seconds or ms) or ISO-8601 string to multiple time representations including epoch seconds, epoch ms, UTC ISO-8601, and a target timezone","exampleAgentPrompt":"Convert the timestamp 1700000000 to a human-readable datetime — show me the epoch in both seconds and milliseconds, the UTC ISO-8601 string, and what time that is in America/Santiago.","exampleUseCases":[{"title":"Decoding API log timestamps","prompt":"I'm looking at server logs and seeing timestamps like 1718500000 — can you convert that to a readable UTC datetime and also tell me what epoch milliseconds that is?"},{"title":"Cross-timezone event scheduling check","prompt":"Convert the ISO string '2024-06-15T14:30:00Z' to a Unix epoch and also show me what local time that is in America/Santiago."},{"title":"Debugging millisecond vs second ambiguity","prompt":"I have a timestamp 1718500000000 and I'm not sure if it's in seconds or milliseconds — can you auto-detect the units and give me the UTC ISO-8601 time and epoch in both formats?"}],"resultDescription":"Returns a JSON object containing the input value normalized to epoch seconds, epoch milliseconds, an ISO-8601 UTC string, and the equivalent datetime in the requested timezone (defaulting to UTC if none specified).","failureModes":["Invalid or unparseable value returns an error response","Unrecognized timezone identifier causes a fallback to UTC or an error","Values with ambiguous digit count outside 10-digit (seconds) or 13-digit (ms) heuristics may be misclassified","Network errors or payment failures return HTTP 402 or 5xx"],"whenToPreferThis":"Use this endpoint when you need a quick, lightweight conversion of any Unix timestamp (auto-detecting seconds vs milliseconds) or ISO-8601 string into multiple representations simultaneously, especially when timezone-aware output is needed. Prefer it over manual date math or client-side libraries when running in an agent context without a JS/Python runtime available.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T00:46:39.002Z","isFirstParty":false,"canonicalSlug":"47620-utilities-api-timestamp-converter-f8cd4639"}