[{"data":1,"prerenderedAt":392,"buildId":393},["ShallowReactive",2],{"navigation-en":3,"page-\u002Fdocs\u002Fapi":38,"surround-\u002Fdocs\u002Fapi":387},[4],{"title":5,"path":6,"stem":7,"children":8,"page":37},"Docs","\u002Fdocs","docs",[9,13,17,21,25,29,33],{"title":10,"path":11,"stem":12},"Getting started","\u002Fdocs\u002Fgetting-started","docs\u002F1.getting-started",{"title":14,"path":15,"stem":16},"Usage","\u002Fdocs\u002Fusage","docs\u002F2.usage",{"title":18,"path":19,"stem":20},"API reference","\u002Fdocs\u002Fapi","docs\u002F3.api",{"title":22,"path":23,"stem":24},"Holiday object","\u002Fdocs\u002Fholiday-object","docs\u002F4.holiday-object",{"title":26,"path":27,"stem":28},"Data and license","\u002Fdocs\u002Fdata-and-license","docs\u002F5.data-and-license",{"title":30,"path":31,"stem":32},"Updating data and contributing","\u002Fdocs\u002Fcontributing","docs\u002F6.contributing",{"title":34,"path":35,"stem":36},"Acknowledgements","\u002Fdocs\u002Facknowledgements","docs\u002F7.acknowledgements",false,{"id":39,"title":18,"body":40,"description":381,"extension":382,"meta":383,"navigation":384,"path":19,"seo":385,"stem":20,"__hash__":386},"docs_en\u002Fdocs\u002F3.api.md",{"type":41,"value":42,"toc":373},"minimark",[43,48,162,178,182,258,273,277,336,351,355,370],[44,45,47],"h2",{"id":46},"operations","Operations",[49,50,51,70],"table",{},[52,53,54],"thead",{},[55,56,57,61,64,67],"tr",{},[58,59,60],"th",{},"Operation",[58,62,63],{},"Java",[58,65,66],{},"TypeScript",[58,68,69],{},"Python",[71,72,73,94,113,142],"tbody",{},[55,74,75,79,85,89],{},[76,77,78],"td",{},"List a year's holidays",[76,80,81],{},[82,83,84],"code",{},"getHolidays(year[, order])",[76,86,87],{},[82,88,84],{},[76,90,91],{},[82,92,93],{},"get_holidays(year[, order])",[55,95,96,99,104,108],{},[76,97,98],{},"List a month's holidays",[76,100,101],{},[82,102,103],{},"getHolidaysForMonth(year, month[, order])",[76,105,106],{},[82,107,103],{},[76,109,110],{},[82,111,112],{},"get_holidays_for_month(year, month[, order])",[55,114,115,118,127,134],{},[76,116,117],{},"Get a day's holiday object",[76,119,120,123,124],{},[82,121,122],{},"getHoliday(LocalDate)"," \u002F ",[82,125,126],{},"getHoliday(year, month, day)",[76,128,129,123,132],{},[82,130,131],{},"getHoliday(\"YYYY-MM-DD\")",[82,133,126],{},[76,135,136,123,139],{},[82,137,138],{},"get_holiday(date)",[82,140,141],{},"get_holiday(year, month, day)",[55,143,144,147,152,157],{},[76,145,146],{},"Check whether the day is a holiday",[76,148,149],{},[82,150,151],{},"isHoliday(LocalDate)",[76,153,154],{},[82,155,156],{},"isHoliday(\"YYYY-MM-DD\")",[76,158,159],{},[82,160,161],{},"is_holiday(date)",[163,164,165,166,169,170,173,174,177],"p",{},"In Java, the operations are static methods of\n",[82,167,168],{},"jp.kurashina.japanholidays.Holidays",". Python's ",[82,171,172],{},"get_holiday"," and ",[82,175,176],{},"is_holiday","\ntake positional arguments only.",[44,179,181],{"id":180},"return-types","Return types",[49,183,184,197],{},[52,185,186],{},[55,187,188,191,193,195],{},[58,189,190],{},"Result",[58,192,63],{},[58,194,66],{},[58,196,69],{},[71,198,199,219,239],{},[55,200,201,204,209,214],{},[76,202,203],{},"Year and month listings",[76,205,206],{},[82,207,208],{},"List\u003CHoliday>",[76,210,211],{},[82,212,213],{},"readonly Holiday[]",[76,215,216],{},[82,217,218],{},"tuple[Holiday, ...]",[55,220,221,224,229,234],{},[76,222,223],{},"Daily lookup",[76,225,226],{},[82,227,228],{},"Optional\u003CHoliday>",[76,230,231],{},[82,232,233],{},"Holiday | null",[76,235,236],{},[82,237,238],{},"Optional[Holiday]",[55,240,241,244,249,253],{},[76,242,243],{},"Holiday check",[76,245,246],{},[82,247,248],{},"boolean",[76,250,251],{},[82,252,248],{},[76,254,255],{},[82,256,257],{},"bool",[163,259,260,261,264,265,268,269,272],{},"Listings are read-only. For an ordinary day in a covered year, the check\nreturns false, and the daily lookup returns ",[82,262,263],{},"Optional.empty()"," in Java, ",[82,266,267],{},"null","\nin TypeScript, and ",[82,270,271],{},"None"," in Python.",[44,274,276],{"id":275},"errors","Errors",[49,278,279,292],{},[52,280,281],{},[55,282,283,286,288,290],{},[58,284,285],{},"Case",[58,287,63],{},[58,289,66],{},[58,291,69],{},[71,293,294,316],{},[55,295,296,299,307,312],{},[76,297,298],{},"Argument of the wrong type",[76,300,301,304,305],{},[82,302,303],{},"NullPointerException"," for ",[82,306,267],{},[76,308,309],{},[82,310,311],{},"TypeError",[76,313,314],{},[82,315,311],{},[55,317,318,321,326,331],{},[76,319,320],{},"Invalid value of the right type",[76,322,323],{},[82,324,325],{},"IllegalArgumentException",[76,327,328],{},[82,329,330],{},"RangeError",[76,332,333],{},[82,334,335],{},"ValueError",[163,337,338,339,342,343,346,347,350],{},"Wrong types include a ",[82,340,341],{},"Date"," object in TypeScript, and a string or ",[82,344,345],{},"datetime","\nin Python. Invalid values include February 30, month 13, an unknown order, and\na year outside the coverage. Java date construction, such as\n",[82,348,349],{},"LocalDate.of(2026, 2, 30)",", may throw before calling Japan Holidays.",[44,352,354],{"id":353},"dates","Dates",[163,356,357,358,361,362,365,366,369],{},"Dates use the Gregorian calendar without local time zone conversion. Java uses\n",[82,359,360],{},"LocalDate",", Python uses ",[82,363,364],{},"datetime.date",", and TypeScript uses ",[82,367,368],{},"YYYY-MM-DD","\nstrings.",[163,371,372],{},"Searching by Japanese era input is deferred for the initial release. Searches\naccept Gregorian dates, and results include the Japanese era display date.",{"title":374,"searchDepth":375,"depth":375,"links":376},"",2,[377,378,379,380],{"id":46,"depth":375,"text":47},{"id":180,"depth":375,"text":181},{"id":275,"depth":375,"text":276},{"id":353,"depth":375,"text":354},"Operations, return types, and errors in each language.","md",{},true,{"title":18,"description":381},"DEqV7bH4QfvNg0zVQhLiBwe_8AqW0tGsFDbUezsoNVM",[388,390],{"title":14,"path":15,"stem":16,"description":389,"children":-1},"List the holidays of a year or month, look up a day, and check whether a date is a holiday.",{"title":22,"path":23,"stem":24,"description":391,"children":-1},"The fields of the read-only holiday object and its JSON form.",1795845267846,"fdcaebf7-02c8-43ab-98c0-e152c5388353"]