{"uid":"cap_QHFnIqasFy3MxCwbZRzGX","slug":"agent402-tools-epoch-iso-date-converter-1369d627","name":"agent402.tools Epoch/ISO Date Converter","description":"Convert between Unix epoch timestamps and ISO 8601 date strings in both directions. Provide either an epoch (seconds or milliseconds) or an ISO date string. Returns both representations plus UTC and date components.","url":"https://agent402.tools/api/epoch-convert","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"date":{"type":"string","description":"ISO 8601 date string (alternative to epoch)"},"unit":{"type":"string","description":"\"seconds\" (default) or \"milliseconds\" - interpretation of the epoch value"},"epoch":{"type":"number","description":"Unix epoch timestamp (seconds or milliseconds)"}}},"responseSchema":{"type":"json","example":{"iso":"2026-06-21T00:00:00.000Z","utc":"Sun, 21 Jun 2026 00:00:00 GMT","epoch":{"seconds":1782000000,"milliseconds":1782000000000},"components":{"day":21,"hour":0,"year":2026,"month":6,"minute":0,"second":0}}},"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_vHmHlXrShoDKOg0UfCYG3","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":"Converts between Unix epoch timestamps and ISO 8601 date strings in both directions, returning both representations plus UTC time and date components.","exampleAgentPrompt":"Convert the Unix epoch timestamp 1700000000 seconds to an ISO 8601 date string and also give me the UTC time and date components.","exampleUseCases":null,"resultDescription":"Returns both the Unix epoch (in seconds and/or milliseconds) and the ISO 8601 date string representation, plus UTC datetime and broken-down date components (year, month, day, etc.).","failureModes":["Invalid or missing input — neither epoch nor date provided returns an error","Ambiguous unit — epoch provided without specifying seconds vs milliseconds may default to seconds","Malformed ISO 8601 string returns a parse error","Epoch value out of supported range returns an error","Payment failure (x402) prevents the call from completing"],"whenToPreferThis":"Use this endpoint when you need a quick, reliable bidirectional conversion between Unix epoch timestamps and ISO 8601 date strings, especially within an automated agent workflow that already handles x402 micropayments. Ideal when you need both representations plus UTC and date components in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:03.630Z","isFirstParty":false}