{"uid":"cap_JXrjG1_xo622MEH4ZkkFG","slug":"2s-io-time-parse-127bab02","name":"2s.io Time Parse","description":"Parse a timestamp or date string into canonical forms — zero-dependency. Accepts unix seconds/millis or any standard date string (ISO-8601, RFC-2822, etc.). Returns UTC ISO, unix seconds + millis, RFC-2822, calendar components (year/month/day/hour/minute/second/weekday), ISO weekday, ISO year+week, and day-of-year. Pass an IANA timezone (tz) to also get the DST-correct local wall-clock time and UTC offset. The reliable time primitive for agents normalizing or converting timestamps.","url":"https://2s.io/api/time/parse","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"const":"http"},"method":{"const":"GET"},"queryParams":{"type":"object","required":["input"],"properties":{"tz":{"type":"string","maxLength":64,"minLength":2,"description":"Optional IANA timezone for local conversion, e.g. America/New_York."},"input":{"type":"string","maxLength":100,"minLength":1,"description":"Timestamp or date string, e.g. \"2026-06-21T15:30:00Z\" or 1750000000."}},"additionalProperties":false}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0025","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.0025/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_gHV5FAjD9h4SduJXaZGzm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0025","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses a timestamp or date string into canonical time representations, optionally converting to a local timezone","exampleAgentPrompt":"Parse the timestamp 1750000000 into all standard date formats and also give me the local wall-clock time in America/Chicago.","exampleUseCases":null,"resultDescription":"Returns a JSON object with the UTC ISO string, unix seconds and milliseconds, RFC-2822 string, full calendar breakdown (year, month, day, hour, minute, second, weekday), ISO weekday number, ISO year+week, day-of-year, and — if a timezone was supplied — the DST-correct local wall-clock time and UTC offset for that timezone.","failureModes":["Invalid or unparseable date string returns an error","Unrecognized IANA timezone string returns an error","Input exceeding 100 characters is rejected by schema validation","Missing required 'input' query parameter returns a 400-level error"],"whenToPreferThis":"Use this endpoint when an agent needs to normalize, decompose, or convert timestamps or date strings across formats and timezones without bundling any date library. Ideal for agents that need ground-truth calendar data (ISO week, day-of-year, DST-correct local time) from arbitrary timestamp inputs, especially when a zero-dependency external call is preferable to in-process date math.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:12:23.563Z","isFirstParty":false}