次の五十日を計算
next_gotobiFind the next Japanese gotobi (5th, 10th, 15th, 20th, 25th, or month-end) after a specified date. If that date falls on a holiday, it returns the actual date adjusted to the previous business day.
Instructions
指定日以降で最も近い五十日(ごとおび。5日・10日・15日・20日・25日・月末)を返します。その日が休日の場合は、直前の営業日に前倒しした実際の日付も一緒に返します。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | 日付 (YYYY-MM-DD形式、例: 2026-08-15) | |
| weekendDays | No | 休みとする曜日の配列 (0=日,1=月,2=火,3=水,4=木,5=金,6=土)。省略時は土日([0,6]) | |
| customHolidays | No | 会社独自の休業日 (YYYY-MM-DD形式の配列)。例: 年末年始 ["2026-12-29","2026-12-30","2026-12-31","2027-01-01","2027-01-02","2027-01-03"] |