[{"data":1,"prerenderedAt":550},["ShallowReactive",2],{"content-en-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\u002Fen\u002Fapi.md","API Reference",{"type":8,"value":9,"toc":528},"minimark",[10,14,19,121,126,147,151,240,267,271,402,426,430,472,478,492,496],[11,12,6],"h1",{"id":13},"api-reference",[15,16,18],"h2",{"id":17},"lunarconverter-gregorianlunar","LunarConverter — Gregorian↔lunar",[20,21,22,38],"table",{},[23,24,25],"thead",{},[26,27,28,32,35],"tr",{},[29,30,31],"th",{},"Member",[29,33,34],{},"Returns",[29,36,37],{},"Description",[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],{},"Gregorian → lunar; throws when out of range",[26,59,60,65,70],{},[44,61,62],{},[47,63,64],{},"ToSolar(LunarDate)",[44,66,67],{},[47,68,69],{},"DateTime",[44,71,72],{},"Lunar → Gregorian; throws for non-existent dates",[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],{},"Returns false (no throw) for non-existent dates",[26,89,90,95,100],{},[44,91,92],{},[47,93,94],{},"GetLeapMonth(int lunarYear)",[44,96,97],{},[47,98,99],{},"int",[44,101,102],{},"Leap month number (e.g. 2 for 2023); 0 when none",[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 to 2101-01-28",[122,123,125],"h3",{"id":124},"lunardate-readonly-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; a leap month shares its predecessor's number) \u002F ",[47,137,138],{},"Day",[47,140,141],{},"IsLeapMonth","; ",[47,144,145],{},"ToString()"," returns Chinese (\"2023年閏二月十五\").",[15,148,150],{"id":149},"solarterms-the-24-solar-terms","SolarTerms — the 24 solar terms",[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],{},"All 24 terms in Gregorian-year order (XiaoHan → DongZhi)",[26,181,182,187,191],{},[44,183,184],{},[47,185,186],{},"GetExactTime(int year, SolarTerm)",[44,188,189],{},[47,190,69],{},[44,192,193],{},"Transition time (Taiwan time, minute precision)",[26,195,196,201,206],{},[44,197,198],{},[47,199,200],{},"GetCurrentTerm(DateTime)",[44,202,203],{},[47,204,205],{},"SolarTermInfo",[44,207,208],{},"Governing term of a moment",[26,210,211,216,220],{},[44,212,213],{},[47,214,215],{},"TryGetTermOfDay(DateTime, out SolarTermInfo?)",[44,217,218],{},[47,219,84],{},[44,221,222],{},"Whether the date is a transition day",[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 to 2100",[127,241,242,244,245,110,248,110,251,254,255,258,259,262,263,266],{},[47,243,205],{},": ",[47,246,247],{},"Term",[47,249,250],{},"ExactTime",[47,252,253],{},"ChineseName",". The ",[47,256,257],{},"SolarTerm"," enum is in-year ordered: ",[47,260,261],{},"XiaoHan(0)"," … ",[47,264,265],{},"DongZhi(23)",".",[15,268,270],{"id":269},"ganzhicalendar-the-ganzhi-calendar","GanzhiCalendar — the Ganzhi calendar",[20,272,273,283],{},[23,274,275],{},[26,276,277,279,281],{},[29,278,31],{},[29,280,34],{},[29,282,37],{},[39,284,285,300,314,328,342,357,372,387],{},[26,286,287,292,297],{},[44,288,289],{},[47,290,291],{},"GetYearGanzhi(DateTime, YearBoundary)",[44,293,294],{},[47,295,296],{},"GanzhiValue",[44,298,299],{},"Year pillar; default boundary = exact LiChun minute",[26,301,302,307,311],{},[44,303,304],{},[47,305,306],{},"GetMonthGanzhi(DateTime)",[44,308,309],{},[47,310,296],{},[44,312,313],{},"Month pillar; switches at the 12 \"Jie\" exact times, five-tigers stems",[26,315,316,321,325],{},[44,317,318],{},[47,319,320],{},"GetDayGanzhi(DateTime)",[44,322,323],{},[47,324,296],{},[44,326,327],{},"Day pillar (civil date, switches at 00:00)",[26,329,330,335,339],{},[44,331,332],{},[47,333,334],{},"GetHourGanzhi(DateTime)",[44,336,337],{},[47,338,296],{},[44,340,341],{},"Hour pillar; Zi starts at 23:00, five-rats stems",[26,343,344,349,354],{},[44,345,346],{},[47,347,348],{},"GetFourPillars(DateTime, YearBoundary)",[44,350,351],{},[47,352,353],{},"FourPillars",[44,355,356],{},"Four pillars; day pillar follows the Bazi 23:00 convention",[26,358,359,364,369],{},[44,360,361],{},[47,362,363],{},"GetZodiac(DateTime, YearBoundary)",[44,365,366],{},[47,367,368],{},"Zodiac",[44,370,371],{},"Zodiac; boundary rule identical to the year pillar",[26,373,374,379,384],{},[44,375,376],{},[47,377,378],{},"GetChineseName(Zodiac)",[44,380,381],{},[47,382,383],{},"string",[44,385,386],{},"Chinese zodiac name",[26,388,389,395,399],{},[44,390,391,110,393],{},[47,392,109],{},[47,394,113],{},[44,396,397],{},[47,398,69],{},[44,400,401],{},"1901-02-19 to 2100-12-31",[127,403,404,406,407,110,410,110,413,415,416,244,419,422,423,266],{},[47,405,296],{}," (readonly struct): ",[47,408,409],{},"Stem",[47,411,412],{},"Branch",[47,414,253],{}," (e.g. 甲子).\n",[47,417,418],{},"YearBoundary",[47,420,421],{},"LiChun"," (default) \u002F ",[47,424,425],{},"LunarNewYear",[15,427,429],{"id":428},"lunarfestivals-lunar-festivals","LunarFestivals — lunar festivals",[20,431,432,442],{},[23,433,434],{},[26,435,436,438,440],{},[29,437,31],{},[29,439,34],{},[29,441,37],{},[39,443,444,458],{},[26,445,446,451,455],{},[44,447,448],{},[47,449,450],{},"TryGetFestival(DateTime, out LunarFestival)",[44,452,453],{},[47,454,84],{},[44,456,457],{},"Whether the date is a festival; leap months never count",[26,459,460,465,469],{},[44,461,462],{},[47,463,464],{},"GetFestivalDate(int solarYear, LunarFestival)",[44,466,467],{},[47,468,69],{},[44,470,471],{},"The festival's date within a Gregorian year",[127,473,474,477],{},[47,475,476],{},"LunarFestival",": New Year's Eve, Lunar New Year, Lantern, Dragon Boat, Qixi, Ghost, Mid-Autumn, Double Ninth, Laba, DongZhi (solar-term based).",[479,480,481],"blockquote",{},[127,482,483,487,488,491],{},[484,485,486],"strong",{},"Laba edge case",": lunar 12\u002F8 is only 22-23 days before the next New Year, so a Gregorian year may contain two Laba (first returned) or zero (throws ",[47,489,490],{},"InvalidOperationException","). E.g. 2022 has two (Jan 10, Dec 30); 2023 has none.",[15,493,495],{"id":494},"exception-behavior","Exception behavior",[497,498,499,507,520],"ul",{},[500,501,502,503,506],"li",{},"Out-of-range queries → ",[47,504,505],{},"ArgumentOutOfRangeException"," (the calendar is never extrapolated)",[500,508,509,512,513,515,516,519],{},[47,510,511],{},"ToSolar"," with a non-existent lunar date → ",[47,514,505],{}," (use ",[47,517,518],{},"TryToSolar"," to avoid)",[500,521,522,525,526],{},[47,523,524],{},"GetFestivalDate"," when the year has no Laba → ",[47,527,490],{},{"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":269,"depth":530,"text":270},{"id":428,"depth":530,"text":429},{"id":494,"depth":530,"text":495},"md",{},true,"\u002Fen\u002Fapi",{"title":6,"description":529},"en\u002Fapi","BfD5rKfOMA6sOBGItNv9qNrNonVedJhmgZ78s9qlvwc",{"matched":548,"target":543,"all":549},"path()",null,1783231660621]