Twinkle HubTwinkle Hub

時區轉換

tw_timezone_convert

Autres outils · 26 outils🇹🇼 Taïwanlecture seule

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

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

Paramètres

NomTypeDescription
time *string
from_tz *string
to_tz *string
Schéma JSON brut
{
  "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"
}

Comment appeler

Amorce — paramètres dans le tableau
tw_timezone_convert({ time: "…" })