{"uid":"cap_5vLAvFBAYe2I7fH66WjNf","slug":"saylor-innovations-unix-timestamp-converter-149e8dee","name":"Saylor Innovations Unix Timestamp Converter","description":"Unix timestamp converter - unix seconds or milliseconds to ISO 8601 date, weekday and day of year, or a date to unix time","url":"https://saylorinnovations.com/api/calc/unix?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","required":["value"],"properties":{"value":{"type":"string","description":"Unix seconds, unix milliseconds or an ISO 8601 date"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["iso_utc","unix_seconds"],"properties":{"input":{"type":["string","null"]},"iso_utc":{"type":"string","description":"Iso utc"},"rfc2822":{"type":"string"},"weekday":{"type":"string","description":"Day of the week"},"checked_at":{"type":["string","null"],"description":"Time the check was run (UTC)"},"input_kind":{"type":"string","description":"Input kind"},"day_of_year":{"type":"number","description":"Day of year"},"unix_seconds":{"type":"number","description":"Unix, in seconds"},"seconds_from_now":{"type":["number","null"],"description":"Seconds from now"},"unix_milliseconds":{"type":"number","description":"Unix milliseconds"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_0JUUcAVM0usi-zhqXMGo9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts Unix timestamps (seconds or milliseconds) to ISO 8601, weekday, and day-of-year, or converts an ISO 8601 date to Unix time","exampleAgentPrompt":"What date and day of the week does Unix timestamp 1700000000 correspond to, and what day of the year is it?","exampleUseCases":[{"title":"Decode epoch timestamp from logs","prompt":"I have a Unix timestamp from our server logs — 1693526400 — can you tell me what date and time that is in ISO format, and what day of the week it was?"},{"title":"Convert date to Unix time for API call","prompt":"I need to pass a Unix timestamp to an API. Can you convert 2024-06-15T00:00:00Z to Unix seconds for me?"},{"title":"Check how far a timestamp is from now","prompt":"I've got a Unix millisecond timestamp — 1750000000000 — can you tell me what date that is and how many seconds away it is from right now?"}],"resultDescription":"Returns a JSON object containing the ISO 8601 UTC date string, RFC 2822 date, weekday name, day of year (numeric), Unix seconds, Unix milliseconds, seconds from now (positive or negative), the input value echoed back, the detected input kind (seconds, milliseconds, or ISO date), and the UTC time the check was run.","failureModes":["Missing required 'value' query parameter returns an error","Malformed or unrecognizable date/timestamp string may return a parsing error","Extremely out-of-range timestamps may produce null or undefined fields","Non-numeric input when a Unix time is expected may cause a validation error"],"whenToPreferThis":"Use this endpoint when you need to quickly convert between Unix epoch time (seconds or milliseconds) and human-readable date formats including ISO 8601, RFC 2822, weekday, and day-of-year — especially in developer or automation workflows. Prefer it over manual calculation or generic date libraries when you want a single API call that returns all relevant date representations at once, including the relative offset from the current time.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T12:42:02.817Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-unix-timestamp-converter-149e8dee"}