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: "…" })