祝日・営業日計算(銀行カレンダー対応)
business_daysCount business days in a range, shift a date by N business days, or check one date. Covers 1955-2027 including substitute holidays, 国民の休日 (a weekday that is a holiday only because it sits between two others) and one-off imperial events, so the awkward years are right and not only the tidy ones.
Set calendar to "bank" for the statutory banking calendar (銀行法施行令第5条), which is also closed 31 December to 3 January — relevant for payment due dates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End date, YYYY-MM-DD. For count and list. | |
| date | No | The date, YYYY-MM-DD. For shift and check. | |
| days | No | Business days to move; negative goes back. For shift. | |
| from | No | Start date, YYYY-MM-DD. For count and list. | |
| year | No | Year. For list. | |
| calendar | No | Defaults to standard. | |
| operation | Yes | count = business days between two dates; shift = move a date by N business days; check = classify one date; list = holidays in a year or range. |