{"uid":"cap_R5sszBiq67_i8lkC8Y-qH","slug":"agenttools-unix-timestamp-converter-f16e79cc","name":"AgentTools Unix Timestamp Converter","description":"Convert Unix epoch timestamps to ISO/UTC dates and back. Millisecond timestamps are detected automatically; invalid dates are rejected with clear errors. Use this when an agent needs to epoch seconds ↔ human dates, both directions.","url":"https://agentstoolshub.com/api/v1/converters/unix-timestamp-converter?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":{"op":{"enum":["to_date","to_timestamp"],"type":"string","description":"Direction"},"value":{"type":"string","description":"Timestamp or date"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__9ieP-ur0eTZj172bEKRC","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts Unix epoch timestamps to ISO/UTC date strings and vice versa, with automatic millisecond detection and clear error handling for invalid inputs.","exampleAgentPrompt":"What date and time does the Unix timestamp 1715000000 correspond to in ISO format? Convert it to a human-readable UTC date.","exampleUseCases":[{"title":"Decode API log timestamp","prompt":"I found a timestamp 1700523600 in my server logs — can you tell me what actual date and time that corresponds to in UTC?"},{"title":"Prepare epoch for database entry","prompt":"I need to store the date 2025-06-01T00:00:00Z as a Unix timestamp in my database — can you convert it to epoch seconds?"},{"title":"Validate suspicious timestamp value","prompt":"Someone sent me the value 9999999999999 claiming it's a Unix timestamp — can you convert it to a date and tell me if it's valid or not?"}],"resultDescription":"Returns either a human-readable ISO/UTC date string (when converting from epoch) or a Unix epoch integer (when converting from a date string). Millisecond timestamps are auto-detected and handled correctly. Invalid or malformed inputs are rejected with descriptive error messages.","failureModes":["Invalid or unparseable date string returns a clear error message","Out-of-range timestamp values are rejected","Missing required 'value' query parameter returns an error","Malformed ISO date strings (e.g. wrong format) are rejected","Ambiguous or partial dates without time components may not be accepted"],"whenToPreferThis":"Choose this endpoint when an agent needs a quick, reliable bidirectional conversion between Unix epoch timestamps and ISO/UTC date strings, especially when millisecond timestamps may be present and need automatic detection. It is purpose-built for this single task, returning clean results with descriptive validation errors, making it preferable to general-purpose date libraries or heavier APIs that bundle many features.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:50:52.789Z","isFirstParty":false,"canonicalSlug":"agenttools-unix-timestamp-converter-f16e79cc"}