Twinkle HubTwinkle Hub

農曆 → 國曆

tw_lunar_to_solar

更多工具 · 同一族🇹🇼 台灣唯讀

農曆 → 國曆。lunar_year 用西元紀年(e.g. 2025 表「農曆 2025 年」)。

參數

參數型別說明
lunar_year *integer—
lunar_month *integer—
lunar_day *integer—
is_leap_monthboolean—
原始 JSON schema
{
  "properties": {
    "lunar_year": {
      "title": "Lunar Year",
      "type": "integer"
    },
    "lunar_month": {
      "title": "Lunar Month",
      "type": "integer"
    },
    "lunar_day": {
      "title": "Lunar Day",
      "type": "integer"
    },
    "is_leap_month": {
      "default": false,
      "title": "Is Leap Month",
      "type": "boolean"
    }
  },
  "required": [
    "lunar_year",
    "lunar_month",
    "lunar_day"
  ],
  "title": "lunar_to_solarArguments",
  "type": "object",
  "additionalProperties": false
}

呼叫​方式

起手式——參數見上表
tw_lunar_to_solar({ lunar_year: 10 })