{
  "id": "timezone-convert",
  "name": "UTC instant to IANA time zones",
  "description": "Convert one explicit UTC instant into 1–10 IANA zone local times and exact UTC offsets, including the runtime's daylight-saving transitions. No wall-time guessing, current-clock lookup, recurrence or DST boolean. Runtime tzdb version is not exposed.",
  "category": "standards",
  "priceUsd": "0.003",
  "pricingStatus": "proposed-unverified",
  "pricing": {
    "unit": "one successful operation call",
    "proposedNominalUsd": "0.003",
    "sixDecimalTokenBaseUnits": "3000",
    "subscription": false,
    "includesPayerWalletOrNetworkFees": false,
    "liveQuoteVerified": false,
    "condition": "Actual SDK challenge is authoritative only within the caller's explicit authorization; configured six-decimal token peg is an operator assertion, not a conversion guarantee."
  },
  "intents": [
    "convert UTC instant to IANA time zones",
    "batch timezone conversion",
    "UTC local time daylight saving offset",
    "format instant in multiple zones"
  ],
  "whenToUse": [
    "Convert one supplied UTC instant to 1–10 local representations with second-accurate offsets under the installed runtime IANA data."
  ],
  "whenNotToUse": [
    "Resolve an ambiguous or nonexistent local wall time, infer a city or abbreviation, fetch current time, classify DST with a boolean, schedule recurring events, or guarantee historical/future political time-zone rules."
  ],
  "capabilities": [
    "UTC instant",
    "IANA time zones",
    "batch zone conversion",
    "local date and time",
    "daylight-saving offset transitions",
    "fractional-hour offsets"
  ],
  "related": [
    "timestamp-convert",
    "duration-convert"
  ],
  "limits": {
    "zones": 10,
    "zoneCodeUnits": 64,
    "outputBytes": 16000,
    "earliestUtc": "1970-01-01T00:00:00.000Z",
    "latestUtc": "2100-12-31T23:59:59.999Z",
    "precision": "milliseconds",
    "tzdbVersion": "not exposed; depends on runtime"
  },
  "errorCodes": [
    "INVALID_INPUT",
    "INVALID_INSTANT",
    "DUPLICATE_TIME_ZONE",
    "UNSUPPORTED_TIME_ZONE",
    "TIME_ZONE_RUNTIME_ERROR"
  ],
  "requirementsProfile": {
    "format": "declared-requirements-v1",
    "facts": {
      "execution.suppliedCode": false,
      "execution.remoteMutation": false,
      "execution.llmInference": false,
      "execution.paidMcp": false,
      "verification.semanticTruth": false,
      "verification.sourceAuthenticity": false,
      "verification.liveVulnerabilities": false,
      "numbers.arbitraryPrecisionJson": false,
      "numbers.model": "ieee754-binary64",
      "privacy.requestBodyPersisted": false,
      "execution.deterministic": true,
      "execution.networkAccess": false,
      "privacy.resultBodyPersisted": false,
      "payment.x402": true,
      "payment.mpp": true,
      "operation.id": "timezone-convert",
      "operation.category": "standards",
      "limit.httpRequestBytes": 131072,
      "limit.requestBytes": 131072,
      "limit.responseBytes": 524288,
      "limit.resultBytes": 16000,
      "limit.jsonDepth": 32,
      "limit.jsonNodes": 20000,
      "time.profile": "utc-instant-iana-batch-v1",
      "time.namedZones": true,
      "time.maxZones": 10,
      "time.localWallTimeResolution": false,
      "time.currentTimeLookup": false,
      "time.pinnedTimezoneDatabase": false,
      "time.leapSeconds": false,
      "input.instant.maxLength": 24,
      "input.instant.minLength": 20,
      "input.zones.maxItems": 10,
      "input.zones.minItems": 1
    },
    "unknownPolicy": "Undeclared requirements are unknown, never compatible. Matching declared facts does not establish semantic fit or input validity.",
    "preflight": "/preflight"
  },
  "documentation": "/reference/tools/timezone-convert.md",
  "serviceContract": "/reference/services/timezone-convert.json",
  "errors": [
    {
      "status": 400,
      "meaning": "Malformed JSON, missing/invalid idempotency key, or payment identifier mismatch",
      "retry": "Correct the request before payment"
    },
    {
      "status": 402,
      "meaning": "Payment challenge or rejected payment",
      "retry": "Use official protocol SDK; inspect payment outcome before another payment"
    },
    {
      "status": 409,
      "meaning": "Idempotency conflict, duplicate proof, or PAYMENT_UNCERTAIN",
      "retry": "Keep original key, body, and proof; reconcile uncertainty with operator; never blindly repay"
    },
    {
      "status": 413,
      "meaning": "Input or generated output too large",
      "retry": "Reduce input; no payment attempted for validation failure"
    },
    {
      "status": 415,
      "meaning": "Unsupported media type or compression",
      "retry": "Send uncompressed application/json"
    },
    {
      "status": 422,
      "meaning": "Schema or service-specific semantic validation failure",
      "retry": "Correct input using returned error code; no payment attempted"
    },
    {
      "status": 429,
      "meaning": "Request/payment-attempt rate exceeded",
      "retry": "Wait for rate limit window; preserve existing payment identity"
    },
    {
      "status": 503,
      "meaning": "Payment configuration/provider/state unavailable, or live DNS preparation failed before settlement",
      "retry": "Check readiness; DNS preparation failures may retry the identical key/body/credential only; uncertainty requires reconciliation"
    }
  ],
  "numericPrecision": "JavaScript IEEE-754 numbers; use strings for large integer IDs/exact decimals where the schema accepts strings. No lossless numeric parsing.",
  "paymentWorkflow": {
    "discoveryOnly": false,
    "supportedProtocols": [
      "x402",
      "mpp"
    ],
    "x402": {
      "credentialHeader": "PAYMENT-SIGNATURE",
      "challengeHeader": "PAYMENT-REQUIRED",
      "receiptHeader": "PAYMENT-RESPONSE",
      "version": 2,
      "scheme": "exact",
      "paymentIdentifier": "payment-identifier extension MUST equal the HTTP Idempotency-Key",
      "sdk": "@x402/core with @x402/evm"
    },
    "mpp": {
      "supported": true,
      "credentialHeader": "Authorization",
      "challengeHeader": "WWW-Authenticate",
      "receiptHeader": "Payment-Receipt",
      "method": "tempo",
      "intent": "charge",
      "sdk": "mppx",
      "tokenDecimals": 6
    },
    "steps": [
      "Check configured readiness and the exact service schema",
      "Generate a fresh random Idempotency-Key for this operation; never use a discovery probe fixture for purchases",
      "Send valid input without a credential to obtain the official protocol challenge",
      "Use the official SDK and authorized wallet to fulfill the challenge",
      "Retry only with identical key, body, protocol and credential",
      "On PAYMENT_UNCERTAIN stop and request operator reconciliation; never blindly pay again"
    ],
    "versionedRetries": "Request fingerprint includes service release version. Retries across a version upgrade can conflict; coordinate upgrades outside the 24-hour replay window and reconcile pending attempts.",
    "docs": "/llms.txt"
  },
  "method": "POST",
  "paths": {
    "x402": "/v1/x402/timezone-convert",
    "mpp": "/v1/mpp/timezone-convert"
  },
  "inputSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "profile": {
        "type": "string",
        "const": "utc-instant-iana-batch-v1"
      },
      "instant": {
        "type": "string",
        "minLength": 20,
        "maxLength": 24,
        "pattern": "^(?:19[7-9]\\d|20\\d{2}|2100)-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?Z$"
      },
      "zones": {
        "minItems": 1,
        "maxItems": 10,
        "type": "array",
        "items": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64,
          "pattern": "^(?:UTC|[A-Za-z][A-Za-z0-9._+-]*(?:\\/[A-Za-z0-9._+-]+)+)$"
        }
      }
    },
    "required": [
      "profile",
      "instant",
      "zones"
    ],
    "additionalProperties": false
  },
  "outputSchema": {
    "type": "object",
    "required": [
      "operation",
      "version",
      "result",
      "provenance"
    ],
    "properties": {
      "operation": {
        "const": "timezone-convert",
        "type": "string"
      },
      "version": {
        "const": "0.29.0",
        "type": "string"
      },
      "result": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "profile": {
            "type": "string",
            "const": "utc-instant-iana-batch-v1"
          },
          "instant": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          },
          "epochMilliseconds": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "zoneCount": {
            "type": "integer",
            "minimum": 1,
            "maximum": 10
          },
          "rulesSource": {
            "type": "string",
            "const": "runtime-intl-iana"
          },
          "tzdbVersion": {
            "type": "null"
          },
          "dstPolicy": {
            "type": "string",
            "const": "offset-at-instant; no-heuristic-DST-classification"
          },
          "results": {
            "minItems": 1,
            "maxItems": 10,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "requestedZone": {
                  "type": "string",
                  "maxLength": 64
                },
                "resolvedZone": {
                  "type": "string",
                  "maxLength": 64
                },
                "localDateTime": {
                  "type": "string",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}$"
                },
                "utcOffset": {
                  "type": "string",
                  "pattern": "^[+-]\\d{2}:\\d{2}(?::\\d{2})?$"
                },
                "utcOffsetSeconds": {
                  "type": "integer",
                  "minimum": -86400,
                  "maximum": 86400
                },
                "zonedDateTime": {
                  "type": "string",
                  "maxLength": 110
                }
              },
              "required": [
                "requestedZone",
                "resolvedZone",
                "localDateTime",
                "utcOffset",
                "utcOffsetSeconds",
                "zonedDateTime"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "profile",
          "instant",
          "epochMilliseconds",
          "zoneCount",
          "rulesSource",
          "tzdbVersion",
          "dstPolicy",
          "results"
        ],
        "additionalProperties": false
      },
      "provenance": {
        "type": "object",
        "required": [
          "inputSha256",
          "outputSha256",
          "deterministic",
          "externalRequests"
        ],
        "properties": {
          "inputSha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "outputSha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "deterministic": {
            "const": true
          },
          "externalRequests": {
            "const": 0
          }
        }
      }
    },
    "additionalProperties": false
  },
  "exampleInput": {
    "profile": "utc-instant-iana-batch-v1",
    "instant": "2026-07-01T12:00:00Z",
    "zones": [
      "America/New_York",
      "Europe/London",
      "Asia/Kolkata",
      "Pacific/Auckland"
    ]
  },
  "exampleResponse": {
    "operation": "timezone-convert",
    "version": "0.29.0",
    "result": {
      "profile": "utc-instant-iana-batch-v1",
      "instant": "2026-07-01T12:00:00.000Z",
      "epochMilliseconds": 1782907200000,
      "zoneCount": 4,
      "rulesSource": "runtime-intl-iana",
      "tzdbVersion": null,
      "dstPolicy": "offset-at-instant; no-heuristic-DST-classification",
      "results": [
        {
          "requestedZone": "America/New_York",
          "resolvedZone": "America/New_York",
          "localDateTime": "2026-07-01T08:00:00.000",
          "utcOffset": "-04:00",
          "utcOffsetSeconds": -14400,
          "zonedDateTime": "2026-07-01T08:00:00.000-04:00[America/New_York]"
        },
        {
          "requestedZone": "Europe/London",
          "resolvedZone": "Europe/London",
          "localDateTime": "2026-07-01T13:00:00.000",
          "utcOffset": "+01:00",
          "utcOffsetSeconds": 3600,
          "zonedDateTime": "2026-07-01T13:00:00.000+01:00[Europe/London]"
        },
        {
          "requestedZone": "Asia/Kolkata",
          "resolvedZone": "Asia/Calcutta",
          "localDateTime": "2026-07-01T17:30:00.000",
          "utcOffset": "+05:30",
          "utcOffsetSeconds": 19800,
          "zonedDateTime": "2026-07-01T17:30:00.000+05:30[Asia/Calcutta]"
        },
        {
          "requestedZone": "Pacific/Auckland",
          "resolvedZone": "Pacific/Auckland",
          "localDateTime": "2026-07-02T00:00:00.000",
          "utcOffset": "+12:00",
          "utcOffsetSeconds": 43200,
          "zonedDateTime": "2026-07-02T00:00:00.000+12:00[Pacific/Auckland]"
        }
      ]
    },
    "provenance": {
      "inputSha256": "599c99deae8e260cb7e847cb1c355c412a58e9ff9edb355b6e066d7edef1705a",
      "outputSha256": "2badc1e493bca94a8e8ab528c7a960ccc6cde822748d705f5bab5e405bb5f6c8",
      "deterministic": true,
      "externalRequests": 0
    }
  },
  "requiredHeaders": {
    "Content-Type": "application/json",
    "Idempotency-Key": "random 16–128 character operation identifier"
  },
  "fixedExample": "/reference/examples/timezone-convert.json",
  "execution": {
    "deterministic": true,
    "externalRequests": 0,
    "maxExternalRequests": 0,
    "resultSnapshotPersisted": false,
    "fixedExampleIsIllustrativeSnapshot": false,
    "requiresPayment": true,
    "supportsMcpExecution": false
  },
  "releaseSnapshot": {
    "format": "static-release-reference-v1",
    "sourceVersion": "0.29.0",
    "sourceRegistrySha256": "a2b5ec09bf6c38b9d2879d746a4fded374f5928b445377b0270ef6aa8e6cac65",
    "generatedAt": "2026-10-06T15:38:00Z",
    "releaseAcceptance": "not-verified-by-generator",
    "runtimeReadiness": "not-evaluated",
    "livePaymentsVerified": false,
    "indexingVerified": false,
    "apiOrigin": null,
    "notice": "Build-time release reference. Runtime readiness, deployment, payment settlement and external indexing are not evaluated here. Prices are proposed; this file cannot authorize execution or payment."
  }
}
