[{"data":1,"prerenderedAt":577},["ShallowReactive",2],{"content-zh-TW-api":3},{"doc":4,"debug":547},{"id":5,"title":6,"body":7,"description":529,"extension":540,"meta":541,"navigation":542,"path":543,"seo":544,"stem":545,"__hash__":546},"content\u002Fzh-TW\u002Fapi.md","API 參考",{"type":8,"value":9,"toc":528},"minimark",[10,14,19,121,126,147,151,240,266,270,401,427,431,473,479,493,496],[11,12,6],"h1",{"id":13},"api-參考",[15,16,18],"h2",{"id":17},"lunarconverter-國曆農曆","LunarConverter — 國曆↔農曆",[20,21,22,38],"table",{},[23,24,25],"thead",{},[26,27,28,32,35],"tr",{},[29,30,31],"th",{},"成員",[29,33,34],{},"回傳",[29,36,37],{},"說明",[39,40,41,58,73,88,103],"tbody",{},[26,42,43,50,55],{},[44,45,46],"td",{},[47,48,49],"code",{},"ToLunar(DateTime)",[44,51,52],{},[47,53,54],{},"LunarDate",[44,56,57],{},"國曆轉農曆；超出範圍拋例外",[26,59,60,65,70],{},[44,61,62],{},[47,63,64],{},"ToSolar(LunarDate)",[44,66,67],{},[47,68,69],{},"DateTime",[44,71,72],{},"農曆轉國曆；日期不存在拋例外",[26,74,75,80,85],{},[44,76,77],{},[47,78,79],{},"TryToSolar(LunarDate, out DateTime)",[44,81,82],{},[47,83,84],{},"bool",[44,86,87],{},"不存在的日期回 false 不拋",[26,89,90,95,100],{},[44,91,92],{},[47,93,94],{},"GetLeapMonth(int lunarYear)",[44,96,97],{},[47,98,99],{},"int",[44,101,102],{},"該年閏月月號（如 2023 回 2）；無閏月回 0",[26,104,105,114,118],{},[44,106,107,110,111],{},[47,108,109],{},"MinDate"," \u002F ",[47,112,113],{},"MaxDate",[44,115,116],{},[47,117,69],{},[44,119,120],{},"1901-02-19 ～ 2101-01-28",[122,123,125],"h3",{"id":124},"lunardatereadonly-struct","LunarDate（readonly struct）",[127,128,129,110,132,135,136,110,139,142,143,146],"p",{},[47,130,131],{},"Year",[47,133,134],{},"Month","（1~12，閏月與被閏的月同號）\u002F ",[47,137,138],{},"Day",[47,140,141],{},"IsLeapMonth","；",[47,144,145],{},"ToString()"," 回中文（「2023年閏二月十五」）。",[15,148,150],{"id":149},"solarterms-二十四節氣","SolarTerms — 二十四節氣",[20,152,153,163],{},[23,154,155],{},[26,156,157,159,161],{},[29,158,31],{},[29,160,34],{},[29,162,37],{},[39,164,165,180,194,209,223],{},[26,166,167,172,177],{},[44,168,169],{},[47,170,171],{},"GetYearTerms(int year)",[44,173,174],{},[47,175,176],{},"IReadOnlyList\u003CSolarTermInfo>",[44,178,179],{},"全年 24 筆，依年內順序（小寒→冬至）",[26,181,182,187,191],{},[44,183,184],{},[47,185,186],{},"GetExactTime(int year, SolarTerm)",[44,188,189],{},[47,190,69],{},[44,192,193],{},"交接時刻（台灣時間，精確到分）",[26,195,196,201,206],{},[44,197,198],{},[47,199,200],{},"GetCurrentTerm(DateTime)",[44,202,203],{},[47,204,205],{},"SolarTermInfo",[44,207,208],{},"指定時刻所屬節氣區段",[26,210,211,216,220],{},[44,212,213],{},[47,214,215],{},"TryGetTermOfDay(DateTime, out SolarTermInfo?)",[44,217,218],{},[47,219,84],{},[44,221,222],{},"該日是否為交接日",[26,224,225,233,237],{},[44,226,227,110,230],{},[47,228,229],{},"MinYear",[47,231,232],{},"MaxYear",[44,234,235],{},[47,236,99],{},[44,238,239],{},"1901 ～ 2100",[127,241,242,244,245,110,248,110,251,254,255,258,259,262,263,254],{},[47,243,205],{},"：",[47,246,247],{},"Term",[47,249,250],{},"ExactTime",[47,252,253],{},"ChineseName","。",[47,256,257],{},"SolarTerm"," enum 依年內順序：",[47,260,261],{},"XiaoHan(0)"," … ",[47,264,265],{},"DongZhi(23)",[15,267,269],{"id":268},"ganzhicalendar-干支曆","GanzhiCalendar — 干支曆",[20,271,272,282],{},[23,273,274],{},[26,275,276,278,280],{},[29,277,31],{},[29,279,34],{},[29,281,37],{},[39,283,284,299,313,327,341,356,371,386],{},[26,285,286,291,296],{},[44,287,288],{},[47,289,290],{},"GetYearGanzhi(DateTime, YearBoundary)",[44,292,293],{},[47,294,295],{},"GanzhiValue",[44,297,298],{},"年柱；界線預設立春精確分鐘",[26,300,301,306,310],{},[44,302,303],{},[47,304,305],{},"GetMonthGanzhi(DateTime)",[44,307,308],{},[47,309,295],{},[44,311,312],{},"月柱；依十二節精確時刻切換，五虎遁月干",[26,314,315,320,324],{},[44,316,317],{},[47,318,319],{},"GetDayGanzhi(DateTime)",[44,321,322],{},[47,323,295],{},[44,325,326],{},"日柱（日曆日，00:00 換日）",[26,328,329,334,338],{},[44,330,331],{},[47,332,333],{},"GetHourGanzhi(DateTime)",[44,335,336],{},[47,337,295],{},[44,339,340],{},"時柱；23:00 起子時，五鼠遁時干",[26,342,343,348,353],{},[44,344,345],{},[47,346,347],{},"GetFourPillars(DateTime, YearBoundary)",[44,349,350],{},[47,351,352],{},"FourPillars",[44,354,355],{},"四柱；日柱採八字慣例 23:00 換日",[26,357,358,363,368],{},[44,359,360],{},[47,361,362],{},"GetZodiac(DateTime, YearBoundary)",[44,364,365],{},[47,366,367],{},"Zodiac",[44,369,370],{},"生肖；界線規則同年柱",[26,372,373,378,383],{},[44,374,375],{},[47,376,377],{},"GetChineseName(Zodiac)",[44,379,380],{},[47,381,382],{},"string",[44,384,385],{},"生肖中文名",[26,387,388,394,398],{},[44,389,390,110,392],{},[47,391,109],{},[47,393,113],{},[44,395,396],{},[47,397,69],{},[44,399,400],{},"1901-02-19 ～ 2100-12-31",[127,402,403,405,406,409,410,413,414,416,417,244,420,423,424,254],{},[47,404,295],{},"（readonly struct）：",[47,407,408],{},"Stem","（天干）\u002F ",[47,411,412],{},"Branch","（地支）\u002F ",[47,415,253],{},"（如「甲子」）。\n",[47,418,419],{},"YearBoundary",[47,421,422],{},"LiChun","（預設）\u002F ",[47,425,426],{},"LunarNewYear",[15,428,430],{"id":429},"lunarfestivals-農曆節日","LunarFestivals — 農曆節日",[20,432,433,443],{},[23,434,435],{},[26,436,437,439,441],{},[29,438,31],{},[29,440,34],{},[29,442,37],{},[39,444,445,459],{},[26,446,447,452,456],{},[44,448,449],{},[47,450,451],{},"TryGetFestival(DateTime, out LunarFestival)",[44,453,454],{},[47,455,84],{},[44,457,458],{},"該日是否為節日；閏月不算節日",[26,460,461,466,470],{},[44,462,463],{},[47,464,465],{},"GetFestivalDate(int solarYear, LunarFestival)",[44,467,468],{},[47,469,69],{},[44,471,472],{},"節日在該國曆年的日期",[127,474,475,478],{},[47,476,477],{},"LunarFestival","：除夕、春節、元宵、端午、七夕、中元、中秋、重陽、臘八、冬至（節氣連動）。",[480,481,482],"blockquote",{},[127,483,484,488,489,492],{},[485,486,487],"strong",{},"臘八特例","：臘月初八距次年初一僅 22~23 天，某些國曆年會出現兩次（取第一次）或零次（拋 ",[47,490,491],{},"InvalidOperationException","）。例如 2022 年有兩次（1\u002F10、12\u002F30）、2023 年零次。",[15,494,495],{"id":495},"例外行為",[497,498,499,507,520],"ul",{},[500,501,502,503,506],"li",{},"超出各 API 支援範圍 → ",[47,504,505],{},"ArgumentOutOfRangeException","（絕不外插）",[500,508,509,512,513,515,516,519],{},[47,510,511],{},"ToSolar"," 遇到不存在的農曆日期 → ",[47,514,505],{},"（改用 ",[47,517,518],{},"TryToSolar"," 可避免）",[500,521,522,525,526],{},[47,523,524],{},"GetFestivalDate"," 該年無臘八 → ",[47,527,491],{},{"title":529,"searchDepth":530,"depth":531,"links":532},"",2,3,[533,536,537,538,539],{"id":17,"depth":530,"text":18,"children":534},[535],{"id":124,"depth":531,"text":125},{"id":149,"depth":530,"text":150},{"id":268,"depth":530,"text":269},{"id":429,"depth":530,"text":430},{"id":495,"depth":530,"text":495},"md",{},true,"\u002Fzh-tw\u002Fapi",{"title":6,"description":529},"zh-TW\u002Fapi","9bhQywCsdZ7ff3fWVgh4pQTxiiM8BgLkWOntB0kWeFM",{"matched":548,"target":549,"all":550},"fallback (.all() + manual match)","\u002Fzh-TW\u002Fapi",[551,556,561,566,567,572],{"path":552,"id":553,"stem":554,"title":555},"\u002Fen\u002Fapi","content\u002Fen\u002Fapi.md","en\u002Fapi","API Reference",{"path":557,"id":558,"stem":559,"title":560},"\u002Fen\u002Fchangelog","content\u002Fen\u002Fchangelog.md","en\u002Fchangelog","Changelog",{"path":562,"id":563,"stem":564,"title":565},"\u002Fen\u002Fgetting-started","content\u002Fen\u002Fgetting-started.md","en\u002Fgetting-started","Getting Started",{"path":543,"id":5,"stem":545,"title":6},{"path":568,"id":569,"stem":570,"title":571},"\u002Fzh-tw\u002Fchangelog","content\u002Fzh-TW\u002Fchangelog.md","zh-TW\u002Fchangelog","更新紀錄",{"path":573,"id":574,"stem":575,"title":576},"\u002Fzh-tw\u002Fgetting-started","content\u002Fzh-TW\u002Fgetting-started.md","zh-TW\u002Fgetting-started","快速開始",1783231660621]