Twinkle HubTwinkle Hub

時區轉換

tw_timezone_convert

기타 · 26개🇹🇼 대만읽기 전용

任意時區之間時間轉換(IANA tz 名稱)。

Args: time: ISO 8601 字串(含或不含 tz offset)。 from_tz: 來源時區("Asia/Taipei"、"UTC"、"America/New_York")。 to_tz: 目標時區。

파라미터

이름타입설명
time *string
from_tz *string
to_tz *string
원본 JSON schema
{
  "properties": {
    "time": {
      "title": "Time",
      "type": "string"
    },
    "from_tz": {
      "title": "From Tz",
      "type": "string"
    },
    "to_tz": {
      "title": "To Tz",
      "type": "string"
    }
  },
  "required": [
    "time",
    "from_tz",
    "to_tz"
  ],
  "title": "timezone_convertArguments",
  "type": "object"
}

호출 방법

스타터 — 파라미터는 위 표 참조
tw_timezone_convert({ time: "…" })