{
  "x402Version": 2,
  "id": 34847,
  "slug": "34847",
  "resource": "https://1gateway.dev/v1/time/convert",
  "description": "Use when scheduling across time zones or turning a local time into UTC without guessing DST. Input: to (IANA zones or KST, PST, CET...), optional from (zone of a local time, default UTC), time (ISO 8601, Unix seconds, or now). Output: JSON UTC instant, Unix time, and per zone: local ISO time with offset, weekday, abbreviation, DST and business-hours flags, day difference. Example: ?time=2026-10-12T09:00&from=Asia/Seoul&to=America/New_York,Europe/London",
  "type": "http",
  "serviceName": "1gateway",
  "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1791609992/bazaar-icons/c4d9db8f8f483844.png",
  "resourceType": "Beauty & Personal Care",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x6246eee0355Dd7A93C888fE59e1151388A0cC5a1",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "2000",
      "amountUsd": 0.002,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "from": {
            "properties": {
              "abbreviation": {
                "type": "string"
              },
              "businessHours": {
                "type": "boolean"
              },
              "date": {
                "type": "string"
              },
              "isDst": {
                "type": "boolean"
              },
              "local": {
                "type": "string"
              },
              "time": {
                "type": "string"
              },
              "utcOffset": {
                "type": "string"
              },
              "utcOffsetMinutes": {
                "type": "integer"
              },
              "weekday": {
                "type": "string"
              },
              "zone": {
                "type": "string"
              }
            },
            "type": "object"
          },
          "input": {
            "type": "string"
          },
          "notes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "to": {
            "items": {
              "properties": {
                "abbreviation": {
                  "type": "string"
                },
                "businessHours": {
                  "type": "boolean"
                },
                "date": {
                  "type": "string"
                },
                "dayDiff": {
                  "type": "integer"
                },
                "hoursAheadOfSource": {
                  "type": "integer"
                },
                "isDst": {
                  "type": "boolean"
                },
                "local": {
                  "type": "string"
                },
                "time": {
                  "type": "string"
                },
                "utcOffset": {
                  "type": "string"
                },
                "utcOffsetMinutes": {
                  "type": "integer"
                },
                "weekday": {
                  "type": "string"
                },
                "zone": {
                  "type": "string"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "unix": {
            "type": "integer"
          },
          "utc": {
            "type": "string"
          }
        },
        "required": [
          "input",
          "utc",
          "unix",
          "from",
          "to",
          "notes"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "from": "Asia/Seoul",
            "time": "2026-10-12T09:00",
            "to": "America/New_York,Europe/London"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "from": {
              "abbreviation": "GMT+9",
              "businessHours": true,
              "date": "2026-10-12",
              "isDst": false,
              "local": "2026-10-12T09:00:00+09:00",
              "time": "09:00:00",
              "utcOffset": "+09:00",
              "utcOffsetMinutes": 540,
              "weekday": "Monday",
              "zone": "Asia/Seoul"
            },
            "input": "2026-10-12T09:00",
            "notes": [
              "Uses the IANA time-zone database bundled with the runtime (ICU)."
            ],
            "to": [
              {
                "abbreviation": "EDT",
                "businessHours": false,
                "date": "2026-10-11",
                "dayDiff": -1,
                "hoursAheadOfSource": -13,
                "isDst": true,
                "local": "2026-10-11T20:00:00-04:00",
                "time": "20:00:00",
                "utcOffset": "-04:00",
                "utcOffsetMinutes": -240,
                "weekday": "Sunday",
                "zone": "America/New_York"
              }
            ],
            "unix": 1791763200,
            "utc": "2026-10-12T00:00:00.000Z"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "queryParams": {
                "additionalProperties": false,
                "properties": {
                  "from": {
                    "default": "UTC",
                    "description": "Zone of the input local time (default UTC; ignored when time has an offset)",
                    "examples": [
                      "Asia/Seoul"
                    ],
                    "pattern": "^[A-Za-z0-9_+\\-/]+$",
                    "type": "string"
                  },
                  "time": {
                    "default": "now",
                    "description": "ISO 8601 date-time (2026-10-12T09:00, 2026-10-12T09:00:00+09:00), Unix seconds/ms, or now",
                    "examples": [
                      "2026-10-12T09:00"
                    ],
                    "pattern": "^(now|\\d{9,13}|\\d{4}-\\d{2}-\\d{2}([T ]\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?)?\\s*(Z|z|[+-]\\d{2}:?\\d{2})?)$",
                    "type": "string"
                  },
                  "to": {
                    "description": "1–25 target zones, comma-separated (IANA names like Asia/Seoul, UTC, or abbreviations like KST, PST, CET)",
                    "examples": [
                      "America/New_York,Europe/London"
                    ],
                    "pattern": "^[A-Za-z0-9_+\\-/]+(\\s*,\\s*[A-Za-z0-9_+\\-/]+){0,24}$",
                    "type": "string"
                  }
                },
                "required": [
                  "to"
                ],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "from": {
                    "properties": {
                      "abbreviation": {
                        "type": "string"
                      },
                      "businessHours": {
                        "type": "boolean"
                      },
                      "date": {
                        "type": "string"
                      },
                      "isDst": {
                        "type": "boolean"
                      },
                      "local": {
                        "type": "string"
                      },
                      "time": {
                        "type": "string"
                      },
                      "utcOffset": {
                        "type": "string"
                      },
                      "utcOffsetMinutes": {
                        "type": "integer"
                      },
                      "weekday": {
                        "type": "string"
                      },
                      "zone": {
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "input": {
                    "type": "string"
                  },
                  "notes": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "to": {
                    "items": {
                      "properties": {
                        "abbreviation": {
                          "type": "string"
                        },
                        "businessHours": {
                          "type": "boolean"
                        },
                        "date": {
                          "type": "string"
                        },
                        "dayDiff": {
                          "type": "integer"
                        },
                        "hoursAheadOfSource": {
                          "type": "integer"
                        },
                        "isDst": {
                          "type": "boolean"
                        },
                        "local": {
                          "type": "string"
                        },
                        "time": {
                          "type": "string"
                        },
                        "utcOffset": {
                          "type": "string"
                        },
                        "utcOffsetMinutes": {
                          "type": "integer"
                        },
                        "weekday": {
                          "type": "string"
                        },
                        "zone": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "unix": {
                    "type": "integer"
                  },
                  "utc": {
                    "type": "string"
                  }
                },
                "required": [
                  "input",
                  "utc",
                  "unix",
                  "from",
                  "to",
                  "notes"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "timezone",
    "time-conversion",
    "dst",
    "scheduling",
    "utc",
    "bazaar"
  ],
  "sourceHost": "1gateway.dev",
  "lastUpdated": "2026-10-11T00:51:40.969Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-11T00:51:40.449Z"
  },
  "metadata": {
    "serviceName": "1gateway",
    "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1791609992/bazaar-icons/c4d9db8f8f483844.png",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "from": "Asia/Seoul",
              "time": "2026-10-12T09:00",
              "to": "America/New_York,Europe/London"
            },
            "type": "http"
          },
          "output": {
            "example": {
              "from": {
                "abbreviation": "GMT+9",
                "businessHours": true,
                "date": "2026-10-12",
                "isDst": false,
                "local": "2026-10-12T09:00:00+09:00",
                "time": "09:00:00",
                "utcOffset": "+09:00",
                "utcOffsetMinutes": 540,
                "weekday": "Monday",
                "zone": "Asia/Seoul"
              },
              "input": "2026-10-12T09:00",
              "notes": [
                "Uses the IANA time-zone database bundled with the runtime (ICU)."
              ],
              "to": [
                {
                  "abbreviation": "EDT",
                  "businessHours": false,
                  "date": "2026-10-11",
                  "dayDiff": -1,
                  "hoursAheadOfSource": -13,
                  "isDst": true,
                  "local": "2026-10-11T20:00:00-04:00",
                  "time": "20:00:00",
                  "utcOffset": "-04:00",
                  "utcOffsetMinutes": -240,
                  "weekday": "Sunday",
                  "zone": "America/New_York"
                }
              ],
              "unix": 1791763200,
              "utc": "2026-10-12T00:00:00.000Z"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "additionalProperties": false,
                  "properties": {
                    "from": {
                      "default": "UTC",
                      "description": "Zone of the input local time (default UTC; ignored when time has an offset)",
                      "examples": [
                        "Asia/Seoul"
                      ],
                      "pattern": "^[A-Za-z0-9_+\\-/]+$",
                      "type": "string"
                    },
                    "time": {
                      "default": "now",
                      "description": "ISO 8601 date-time (2026-10-12T09:00, 2026-10-12T09:00:00+09:00), Unix seconds/ms, or now",
                      "examples": [
                        "2026-10-12T09:00"
                      ],
                      "pattern": "^(now|\\d{9,13}|\\d{4}-\\d{2}-\\d{2}([T ]\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?)?\\s*(Z|z|[+-]\\d{2}:?\\d{2})?)$",
                      "type": "string"
                    },
                    "to": {
                      "description": "1–25 target zones, comma-separated (IANA names like Asia/Seoul, UTC, or abbreviations like KST, PST, CET)",
                      "examples": [
                        "America/New_York,Europe/London"
                      ],
                      "pattern": "^[A-Za-z0-9_+\\-/]+(\\s*,\\s*[A-Za-z0-9_+\\-/]+){0,24}$",
                      "type": "string"
                    }
                  },
                  "required": [
                    "to"
                  ],
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "from": {
                      "properties": {
                        "abbreviation": {
                          "type": "string"
                        },
                        "businessHours": {
                          "type": "boolean"
                        },
                        "date": {
                          "type": "string"
                        },
                        "isDst": {
                          "type": "boolean"
                        },
                        "local": {
                          "type": "string"
                        },
                        "time": {
                          "type": "string"
                        },
                        "utcOffset": {
                          "type": "string"
                        },
                        "utcOffsetMinutes": {
                          "type": "integer"
                        },
                        "weekday": {
                          "type": "string"
                        },
                        "zone": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "input": {
                      "type": "string"
                    },
                    "notes": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "to": {
                      "items": {
                        "properties": {
                          "abbreviation": {
                            "type": "string"
                          },
                          "businessHours": {
                            "type": "boolean"
                          },
                          "date": {
                            "type": "string"
                          },
                          "dayDiff": {
                            "type": "integer"
                          },
                          "hoursAheadOfSource": {
                            "type": "integer"
                          },
                          "isDst": {
                            "type": "boolean"
                          },
                          "local": {
                            "type": "string"
                          },
                          "time": {
                            "type": "string"
                          },
                          "utcOffset": {
                            "type": "string"
                          },
                          "utcOffsetMinutes": {
                            "type": "integer"
                          },
                          "weekday": {
                            "type": "string"
                          },
                          "zone": {
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "unix": {
                      "type": "integer"
                    },
                    "utc": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "input",
                    "utc",
                    "unix",
                    "from",
                    "to",
                    "notes"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "1gateway.dev",
    "manifest_name": "1gateway.dev",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "from": {
        "abbreviation": "string",
        "businessHours": true,
        "date": "string",
        "isDst": true,
        "local": "string",
        "time": "string",
        "utcOffset": "string",
        "utcOffsetMinutes": 0,
        "weekday": "string",
        "zone": "string"
      },
      "input": "string",
      "notes": [
        "string"
      ],
      "to": [
        {
          "abbreviation": "string",
          "businessHours": true,
          "date": "string",
          "dayDiff": 0,
          "hoursAheadOfSource": 0,
          "isDst": true,
          "local": "string",
          "time": "string",
          "utcOffset": "string",
          "utcOffsetMinutes": 0,
          "weekday": "string",
          "zone": "string"
        }
      ],
      "unix": 0,
      "utc": "string"
    },
    "type": "string"
  }
}